Multi-column collated sorting in the xamDataGrid

Answered (Verified) This post has 1 verified answer | 3 Replies | 2 Followers Thread's RSS feed.

dbeavon
Points 1,945
Replied On: Sun, Feb 5 2017 2:49 PM Reply

Is there an easy way to change the multi-column sorting shortcut key to "SHIFT" instead of "CTRL"?

With the xamGrid there was a property for this (MultiSortingKey="Shift")

But the only thing I found related to this in the xamDataGrid was an elaborate solution in code behind (found here: http://www.infragistics.com/community/forums/t/52917.aspx)...

I'm hoping that there is a simpler approach that is now available since that forum post was written.

  • Post Points: 20

Verified Answer

[Infragistics]Tacho
Points 5,550
Infragistics Employee
Answered (Verified) Replied On: Mon, Feb 6 2017 8:20 AM Reply
Verified by dbeavon

Hello dbeavon,

Thank you for providing a link to the thread you have referred to.

In order to sort the XamDataGrid by multiple fields with the "Shift" key, I can suggest you is to use the approach from the thread you have referred to. Since by default the XamDataGrid can be sorted by multiple fields with the "Ctrl" key only, any other functionality would require a custom implementation (the sample from the specified thread can be used as a starting point).

You can always submit a new product idea (or vote for an existing one) at http://ideas.infragistics.com/forums/192363-wpf.
The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

If you have any further questions, please let me know.

Sincerely,
Tacho
Entry-Level Software Developer

  • Post Points: 40

All Replies

[Infragistics]Tacho
Points 5,550
Infragistics Employee
Answered (Verified) Replied On: Mon, Feb 6 2017 8:20 AM Reply
Verified by dbeavon

Hello dbeavon,

Thank you for providing a link to the thread you have referred to.

In order to sort the XamDataGrid by multiple fields with the "Shift" key, I can suggest you is to use the approach from the thread you have referred to. Since by default the XamDataGrid can be sorted by multiple fields with the "Ctrl" key only, any other functionality would require a custom implementation (the sample from the specified thread can be used as a starting point).

You can always submit a new product idea (or vote for an existing one) at http://ideas.infragistics.com/forums/192363-wpf.
The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

If you have any further questions, please let me know.

Sincerely,
Tacho
Entry-Level Software Developer

  • Post Points: 40
dbeavon
Points 1,945
Replied On: Fri, Apr 14 2017 1:37 PM Reply

OK, I'll submit an idea.  

This presence of this issue seems to indicate that users of the XamDataGrid don't use other common datagrids like the one in Outlook.  (Outlook also uses the Shift key for multi-column sorting).

Maybe the overall user base of the XamDataGrid is smaller, or other developers think that an approach using code-behind is acceptable.  I think it is a bit unfortunate that we would need to spend this much effort on something that was a known requirement, eg back when the XamGrid was first built.  On a positive note, it is nice that the XamDataGrid is flexible enough to allow customizations - I may have the user hold down the spacebar instead of the SHIFT or CTRL key. ;)

 

  • Post Points: 5
dbeavon
Points 1,945
Replied On: Fri, Apr 14 2017 1:40 PM Reply

Idea.  Please vote!

http://ideas.infragistics.com/forums/192363-wpf/suggestions/18940324-xamdatagrid-needs-to-support-shift-for-collated-so

  • Post Points: 5
Page 1 of 1 (4 items) | RSS