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
340
Column Sort By a Different Field
posted

Our xamDataGrid is bound to a collection.  In our collection we have a field that we track internally and don't display to the user (it's not a field that has relevant meaning to the user).  This field is RelativeMeasure and what it really tracks is absolute position from the start to the end of a line.  In lieu of displaying RelativeMeasure, we display 4 other fields in our grid that have actual meaning to the user such as Route, Series, Station and Measure (these fields have domain meaning to the user for a location on the line).  We display additional fields to the user such as % error that the user might want to sort on so we allow sorting in our grid so the user can sort by whatever column they want.

The trouble is, that the user, when they go to sort by Route, Series, Station or Measure what they are really expecting is a sort by RelativeMeasure.  Is there a way when the user clicks on one of these headers that we can sort by RelativeMeasure instead of the column they selected?

Thanks!

Parents Reply Children
No Data