Jun
1
Written by:
Steve Gray
6/1/2010 5:08 PM
I have a grid where I need to keep a checkbox from being selectable based on a column status. Here’s how to do that.
Go into the properties for the column and turn on ‘Act as selector’
Private Sub GridEX1_EditingCell(ByVal sender As Object, ByVal e As Janus.Windows.GridEX.EditingCellEventArgs) Handles GridEX1.EditingCell
Dim strSopnumber As String = ""
If e.Column.ActAsSelector Then
strSopnumber = Me.GridEX1.GetValue("sopnumbe").ToString.Trim
If strSopnumber = "" Then
globalMessageBox("Only SOP documents are printable from this window")
e.Cancel = True
End If
End If
End Sub
As always, I welcome your comments!