Hi,
I have UltraWebGrid that contain a datetime column and i have applied Format='MM/dd/yyyy'.
I have done AllowSortingDefault="OnClient".
when i click on column it is not sorting properly. means it is sorting like alphabetically.
Please give advise.
Thanks
following was missing DataType="System.DateTime"
Now it is working!
Hi pradnyavaidya,
verify two things.
1. In ultragrid view column 'DataType="System.DateTime"' is set
2. Verify the data type of the column which is in datatable or dataset ( verify in VS in debug mode )
If ultragid's column is set as datetime than the data which is binding with this column must be datetime so it will sort like datetime and display format can be change.
ultrawebgrid column and the data both must be in date time than it will sort perfectly. If type is string it will sort based on character not based on date.
Sorry, I am not at expert level so currently i don't have alternate solution of this.