If you want to exclude the ID or any GridBoundcolumn from the grid edit form, you will need to set its ReadOnly property to true
| NEWS |
Showing posts with label Telerik RadControls. Show all posts
Showing posts with label Telerik RadControls. Show all posts
Wednesday, August 3, 2011
RadGrid Item Missing Border when null
Sometimes, the cell border seems to disappear when the cell is empty, so probably you can add a white space( ) to the cell inorder to prevent this,
{
foreach (GridDataItem dataItem in RadGrid2.Items)
{
foreach (GridColumn col in RadGrid2.Columns) {
if (dataItem[col.UniqueName].Text == string.Empty)
dataItem[col.UniqueName].Text += " ";
}
}
} There is another way.
You can edit inside the CSS if you use the custom Skin
.RadGrid_MySkin .rgMasterTable
{
border-collapse:collapse !important;
}
Subscribe to:
Posts (Atom)