BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Private Sub gridDataBoundGrid1_PrepareViewStyleInfo(sender As Object, e As GridPrepareViewStyleInfoEventArgs) If e.RowIndex > 0 And e.ColIndex > 0 Then ''Col1 is the name of teh checkbox column Dim checkBoxCol As Integer = Me.gridDataBoundGrid1.Binder.NameToColIndex("Col1") Dim o As Object = Me.gridDataBoundGrid1(e.RowIndex, checkBoxCol).CellValue Dim val As Boolean = o.ToString() = True.ToString() If val Then e.Style.BackColor = Color.LightGoldenrodYellow End If End If End Sub ''gridDataBoundGrid1_PrepareViewStyleInfo Private Sub gridDataBoundGrid1_CurrentCellChanged(sender As Object, e As EventArgs) Dim checkBoxCol As Integer = Me.gridDataBoundGrid1.Binder.NameToColIndex("Col1") If Me.gridDataBoundGrid1.CurrentCell.ColIndex = checkBoxCol Then Me.gridDataBoundGrid1.CurrentCell.ConfirmChanges() Me.gridDataBoundGrid1.RefreshRange(GridRangeInfo.Row(Me.gridDataBoundGrid1.CurrentCell.RowIndex)) End If End Sub ''gridDataBoundGrid1_CurrentCellChanged