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
460
Formatting DateTime Column
posted

Hello,

 

One of the columns in my grid is bound to a DateTime field in a DataTable object.

If the field has a certain value (for example 1/1/900), I need to display a string with some message that is meaningful to a user. Otherwise, I need to display the field in the MM/yyyy format.

How can I do this? The column needs to be sortable, so creating another field in a DataTable that has proper string representation wouldn't work.

 

Thank you,

Daniel

Parents Reply Children
No Data