Hello,
I added checkbox in the first column header of my grid by implement CreationFilter.
What I wanna do is accessing the checkbox in the header and change its checkState by code.
The problem is I don't know how to access that checkbox.
Any idea?
Cheers,
Elton
Thanks for yor reply Mike,
Yes I am using the KB example, and the checkbox is not actuarly in the Tag.
((CheckBoxUIElement)grdAttributes.DisplayLayout.UIElement.GetDescendant(typeof(HeaderUIElement)).GetDescendant(typeof(CheckBoxUIElement)));
Not elegant but works.
Thanks,Elton
Hi Elton,
If you are using the sample code, then I beleive the checkbox value is stored in the Tag property of the column header. So you would have to do something like column.Header.Tag = true.
Then you have to call grid.DisplayLayout.UIElement.DirtyChildElements to force the CreationFilter to update the grid's display.