on 07-04-2015 10:32 AM
Hi All,
How to Sort Date Column in Grid?
Code:
oGrid.Columns.Item(ColIndex).TitleObject.Sortable = True
It works fine ,not for Date Column,
In Date Col
01/10/2015
10/10/2015
02/10/2015
03/10/2015
04/10/2015
05/10/2015
06/10/2015
07/10/2015
08/10/2015
09/10/2015
But i need like this when I click Date Column Header.
01/10/2015
02/10/2015
03/10/2015
04/10/2015
05/10/2015
06/10/2015
07/10/2015
08/10/2015
09/10/2015
10/10/2015
Please how to solve this?
Hi Lakshmi Narayanan,
-when we load the data in grid Automatically we will get the date in Order only right.
-or else through sql means go through the below link
sql - Order by descending date - month, day and year - Stack Overflow
Regards,
P.Pallavi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Lakshmi,
Data are coming from which dataobject (DataTable?)?
You're sure data type of column is Date, not string?
Regards,
Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.