Posted 27 Jan 2011 Link to this post
Posted 28 Jan 2011 Link to this post
Private
Sub
RadGridView1_CellFormatting(
ByVal
sender
As
System.
Object
,
e
Telerik.WinControls.UI.CellFormattingEventArgs)
Handles
RadGridView1.CellFormatting
If
TypeOf
e.CellElement
Is
GridCheckBoxCellElement
Then
' If its a Checkbox cell
e.CellElement.RowInfo.Cells(
"Id"
).Value IsNot
Nothing
' and the Id column (for exmaple) is not null
Convert.ToInt32(e.CellElement.RowInfo.Cells(
).Value) = 1
' If the Id is 1
CType
(e.CellElement.Children(0), RadCheckBoxEditorElement).Checkmark.Visibility = ElementVisibility.Collapsed
End
Posted 02 Feb 2011 Link to this post
private
void
radGridView1_CellFormatting(
object
sender, CellFormattingEventArgs e)
{
GridCheckBoxCellElement cell = e.CellElement
as
GridCheckBoxCellElement;
if
(cell !=
null
)
RadCheckBoxEditor editor = cell.Editor
RadCheckBoxEditor;
editor.EditorElement.Visibility = ElementVisibility.Collapsed;
}
Posted 28 Apr 2017 in reply to Alexander Link to this post
Posted 28 Apr 2017 Link to this post