He,
I need to access the checkbox in HeaderPrefixArea, Via in the Codebehind, so that i can change the state of checkbox.
I tried, FindName, FindResource methods, but i could not. Please tell how to access the checkbox in headerprefixarea through codebehind.
Thanks
Andy,
Try this !!!
CheckBox
checkBox = Infragistics.Windows.Utilities.GetDescendantFromName(xamDatagridName, "grdHeaderCheckbox") as CheckBox;
if (checkBox != null)
checkBox.IsChecked = true;
where grdHeaderCheckbox is the name of the checkbox in HeaderPrefixArea
Thanks,
Arun
Thanx Arun
That worked for me, thanx!
Christo
John Smith has posted his solution on http://blogs.infragistics.com/blogs/josh_smith/archive/2008/09/04/adding-checkboxes-to-the-record-selectors-in-xamdatagrid.aspx