I am using the header checkbox capability (check all) of the grid on an unbound column.
I manually create the column as follows:
Dim col As UltraGridColumn = e.Layout.Bands(0).Columns.Add("IsSelected")
col.Layout.Override.HeaderCheckBoxVisibility = HeaderCheckBoxVisibility.WhenUsingCheckEditor
col.Header.Caption = ""
col.Header.VisiblePosition = 0
col.DataType = GetType(Boolean)
The remaining columns are bound to a List(Of MyObject).
When I select the check all checkbox in the header, all of the checkboxes in the rows at checked as expected. But, the edit icon (pencil) is shown. Why, and which event is most appropriate to call UpdateData to remove the edit icons, or is there a better solution?
Thanks, Randy
The AfterHeaderCheckStateChanged event fires after the user clicks the header checkbox, and after looking at the code I see that we update the cell values before that fires, so you should be able to use that event.