Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a one column in that having some data in database like
TBSPL/C/Mar12/634

KBSPL/C/jan14/735

TBDPL/C/aug13/834

SBSPL/C/july12/034
int that i need to sort the data based on year in gridview . but i am getting the problem that ,the year i presented in the middle of the row like jan14 (KBSPL/C/jan14/735) i am not able to sort guys please help me . ..
Posted

1 solution

You will not able to perform sorting anyhow by this way...
When u insert this data in DB add a new column named 'SortDateMonth' and insert a Month and Year related to your data accordingly in that and then apply sorting on SortDateMonth column.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900