Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 25, 2013 07:35 AM by smirnov
Member
64 Points
80 Posts
Feb 24, 2013 08:07 PM|LINK
I have a grid view already displaying on my web page. Now, I want to change its sort direction like the first row to be the last and other rows follow in that order. How can I do this.
All-Star
23694 Points
4053 Posts
Feb 24, 2013 08:20 PM|LINK
You can check this http://msdn.microsoft.com/en-us/library/aa479347.aspx
31766 Points
6492 Posts
Feb 24, 2013 11:50 PM|LINK
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.commandargument.aspx
127077 Points
17946 Posts
MVP
Feb 25, 2013 01:55 AM|LINK
What DataSource you were using? If you're using DataTable then you may want to give these examples a try:
Feb 25, 2013 04:39 AM|LINK
Hello Vinz, Am using asp SqlDatasource not DataTable, Have you done a tutorial on this one too?
Feb 25, 2013 07:35 AM|LINK
The above link describes SqlDataSource.
Please refer to Paging and Sorting Data from a SqlDataSource.
Also you can have a look at
http://msdn.microsoft.com/en-us/library/sa88ktts(v=vs.100).aspx
http://forums.asp.net/t/1607306.aspx/1
Hope this helps.
Bbaale
Member
64 Points
80 Posts
Sort Direction of grid view
Feb 24, 2013 08:07 PM|LINK
I have a grid view already displaying on my web page. Now, I want to change its sort direction like the first row to be the last and other rows follow in that order. How can I do this.
smirnov
All-Star
23694 Points
4053 Posts
Re: Sort Direction of grid view
Feb 24, 2013 08:20 PM|LINK
You can check this http://msdn.microsoft.com/en-us/library/aa479347.aspx
oned_gk
All-Star
31766 Points
6492 Posts
Re: Sort Direction of grid view
Feb 24, 2013 11:50 PM|LINK
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.commandargument.aspx
vinz
All-Star
127077 Points
17946 Posts
MVP
Re: Sort Direction of grid view
Feb 25, 2013 01:55 AM|LINK
What DataSource you were using? If you're using DataTable then you may want to give these examples a try:
MessageBox Controls for WebForms | Blog | Twitter | Linkedin
Bbaale
Member
64 Points
80 Posts
Re: Sort Direction of grid view
Feb 25, 2013 04:39 AM|LINK
Hello Vinz, Am using asp SqlDatasource not DataTable, Have you done a tutorial on this one too?
smirnov
All-Star
23694 Points
4053 Posts
Re: Sort Direction of grid view
Feb 25, 2013 07:35 AM|LINK
The above link describes SqlDataSource.
Please refer to Paging and Sorting Data from a SqlDataSource.
Also you can have a look at
http://msdn.microsoft.com/en-us/library/sa88ktts(v=vs.100).aspx
http://forums.asp.net/t/1607306.aspx/1
Hope this helps.