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
1285
How to enable to sorting in Field level
posted

Hi,

I am using XamDatagrid.

Here, I am trying to Enabling or Disabling sorting by setting

Disabling sorting:

this.xamDataGrid.FieldSettings.LabelClickAction = LabelClickAction.Nothing;

If i want to enable sorting for only for specific field ..How can i achieve it?

Thank you,

Chandra

  • 138253
    Offline posted

    Hello Chandra,

     

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

  • 138253
    Offline posted

    Hello Chandra,

    Thank you for your post. I have been looking into it and I can suggest you handle XamDataGrid’s Sorting event instead and cancel it depending on the Field that is going to be sorted. The following code shows how to get the Field and how to cancel the sorting:

    Field sortedField = e.Field;
    e.Cancel = true;
     

    Please let me know if this helps you or you need further assistance on this matter.

    Looking forward for your reply.