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
335
Sort Columns using another column
posted

Hi,

I am having a grid which will display the Date/Time string.

My DTO is having two members called. 'ModifiedTime' and 'ModifiedTimeString'. The second member will
convert the datetime to a defined format [dd/MM/yyyy HH:mm]. Field 'ModifiedTimeString' is added to xamdatagrid.

Is that possible that when the user tries to sort the 'ModifiedTimeString' field the grid should get sorted based
on the data member 'ModifiedTime'? I tried IComparer, but i'm unable to convert the text as date/time (it is
giving a error 'connot convert, invalid string').

Can somebody help me in this regard? Thanx in advance.

Parents Reply Children