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
470
IComparer - Pass DataRecord instead of CellValue?
posted

Hello -- I'm using the XamDataGrid, and I need to do a custom sort based on a property from the DataRecord.DataItem, not just the cellValue of the column I'm sorting on. Is there a way to access or pass the DataRecord to IComparer?

column1 column2 column3 prop1 ---- record 1

column1 column2 column3 prop1 ---- record 2

...

column1 column2 column3 prop1 ---- record n

I would like to custom sort on column 2 (when column 2 is grouped) using the value of prop1.  Thanks!