Hi,
I am facing a problem while sorting on date column when header is clicked. The dates are sorted as string.
The following is the code i am using.
sprData.SetText(SPR_COL_DTM, idx,
).value))
this is the code which populates the column in Ultrawingrid.
Thank you,
Basavaraj P Hiremath.
You can't change the data type of bound columns because that is dictated by the underlying DataColumn (assuming you are bound to a DataTable). The DataColumn class exposes a DataType property which is settable, but if the data is coming from a database then the data itself is of type string, which limits your options.
How to change the data type of the column? when i try to change the property of the Ultrawin grid, its not allowing? is there any way so that i can change the property of the column at run time by coding ?
If column not have data type like DateTime, the data will be sorting like string.