Query |
Solution | |
1. How do I change the background color for the entire row, based on if the checkbox column BulkUpdate is check or not. |
You can achieve this by using QueryRowStyle event a shown in the following code example.
Code example :
| |
2. How do I uncheck the BulkUpdate checkbox column in each row? |
You can change the check box value of the row when double clicking on it as shown in the following code example.
Code Example :
|
For Each item In Me.sfDataGrid1.View.Records
Dim bulkUpdate = CBool(Me.sfDataGrid1.View.GetPropertyAccessProvider().GetValue(item.Data, "BulkUpdate"))
If bulkUpdate Then
Me.sfDataGrid1.View.GetPropertyAccessProvider().SetValue(item.Data, "BulkUpdate", False)
End If
Next item |