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
220
how to set command binding to XamDataGrid Column header(LabelPresenter)?
posted

In WPF DataGridColumnHeader , we can set command binding . how can i do the same thing with XAMDataGrid ?

 

Thanks Ethan.

 

  • 17559
    posted

    Hello Ethan,

     

    The LabelPresenter has property CommandBindings and you can specify the binding for it. A possible approach to do this is :

        LabelPresenter lp = Infragistics.Windows.Utilities.GetDescendantFromType(xdg, typeof(LabelPresenter), false) as LabelPresenter;

          

                lp.CommandBindings.Add(…);

     

    For further reference you can also check the following link:

     

    http://windowsclient.net/learn/video.aspx?v=288066

     

    Please note, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well.

     

    Feel free to write me if you need further assistance.