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
25
Header CheckBox in HeaderPrefix Area
posted

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

 

 

Parents
No Data
Reply
  • 75
    posted

    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

Children