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.
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.
Hi mr. Toromanov, and thanks for your reply.
I tried this code but it does not have the result that i meant.It could just change the status of the header checkbox, while i need to change the state of a column for all rows in the grid by changing the header checkbox check state.
Hi,
I tried this and it works fine for me, so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
thanks it worked for me..!! :)