Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a gridview, binding data from database, and sorting the data based on date column. But the output is not coming as i expected...


C#
dvMails.Sort = "Sortcolumnname ASC";
                   gvInbox.DataSource = dvMails;
                   gvInbox.DataBind();
Posted
Comments
pradiprenushe 20-Jun-13 7:26am    
Are you taking data column as varchar? What are you are expecting & waht are you getting?
Rockstar_ 20-Jun-13 23:40pm    
Yes i have taken the column as varchar, i have modified it to datetime and the problem solved...

Thanks..

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