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
310
change the check state of a header checkbox of a ultragrid programmatically
posted

Hi all,

how can i change the check state of a header checkbox of a ultragrid programmatically in my c# winform application?

I mean instead of using loop to get through all rows of a ultragrid to set a boolean column values to true or false, use the checkbox in its header.

Parents
  • 71886
    Offline posted

    Hello mphoenix,

    You could do this by using the 'SetHeaderCheckState()' method on the column, like this:

           ultraGrid1.DisplayLayout.Bands[0].Columns[0].SetHeaderCheckedState(ultraGrid1.Rows, true);

    Please feel free to let me know if a question about our tool set comes up on your mind.

Reply Children