Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Header CheckBox (Check All) Edit (Pencil) Icon
posted

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

 

  • 69832
    Offline posted

    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.