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
425
how do I reader the header's check box's state
posted

Hi all

How do I reader the header's check box's state?

I find this event - AfterHeaderCheckStateChanged(object sender, AfterHeaderCheckStateChangedEventArgs e) will trigger when checkbox state change, but I find no property that return the actual state.

Bryan

  • 6158
    Suggested Answer
    Offline posted

    Hello Bryan,

    The eventargs for the AfterHeaderCheckStateChanged event provides both the UltraGridColumn and affected RowsCollection. To get the current CheckState for the header, you can call the column's GetHeaderCheckState() method passing in the provided RowsCollection.

    CheckState currentCheckState = e.Column.GetHeaderCheckState(e.Rows);

    Please let me know if I can be of further assistance.

    Thanks,

    Chris