hi ,
I want to hidden the specific commands button in one column depend on cell value ,the first time after loading form everything is OK and buttons are be hidden but after scrolling the grid all other buttons in this column are be hidden too, please advise me with this problem .
I want to hidden the specific commands button in one column depend on cell value ,the first time after loading form everything is OK and buttons are be hidden but after scrolling the grid all other buttons in this column are be hidden too, please advise me with this problem .
Private
Sub
Grid_Form_CellFormatting(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.WinControls.UI.CellFormattingEventArgs)
Handles
Grid_Form.CellFormatting
Try
If
TypeOf
e.CellElement.ColumnInfo
Is
GridViewCommandColumn
Then
If
e.CellElement.RowInfo.Cells(
"GroupType"
).Value.ToString <> 3
Then
Dim
button
As
RadButtonElement =
CType
(e.CellElement.Children(0), RadButtonElement)
button.Visibility = vbHidden
button.BackColor = Color.Peru
End
If
End
If
End
If
Catch
ex
As
Exception
End
Try
End
sub