I M Using a Radgrid in which i need to disable radgrid Commnds on Some DataItem ..
I m using RadgridEditCommand Column as well asRadgridbutton Column.
Even if i make them enable false..Clicking on that itemCommand gets fired.
I m using RadgridEditCommand Column as well asRadgridbutton Column.
Even if i make them enable false..Clicking on that itemCommand gets fired.
Private Sub DisableRadGridCommand(ByVal dtitem As GridDataItem, ByVal colname As String)
Try
For Each ctrl In dtitem(colname).Controls
If (TypeOf ctrl Is WebControl) Then
CType(ctrl, WebControl).Enabled = False
End If
Next
Catch ex As Exception
End Try
End Sub