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
205
How to capture the column name while sorting
posted

Hi All,

I am new to Infragistics and WPF.

My problem is - There is an XamDataGrid on which I need to implement custom sorting. For that I

need the name of column which user clicks for sorting and set it to CustomParameter property of

common:EventCommandTrigger. I am using

 

CustomParameter

 

 

="{Binding ElementName=dgViewAllUDA,Path=DataItem}

 

 

 

 

 But it sets Null to CustomParameter. 

Please help.

-Nirmit

 

 

  • 138253
    Offline posted

    Hello Nirmit,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking through your post and I suggest you see this forum thread, where there is a sample project with the implementation of a custom sorting:

     

    http://forums.infragistics.com/forums/t/57047.aspx

     

    Also you can use this code:

     

    string fieldName = e.Field.Name;

     

    in the XamDataGrid’s Sorting event to get the Name of the Field that is going to be sorted.

     

    Feel free to write me if you have further questions.