943,985 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 663
  • ASP.NET RSS
Sep 29th, 2009
0

General Question about GridView framework 3.5

Expand Post »
Hi all, I just have curiosity about something that I read in a book " Unlike using the DataGrid, where you are responsible for
coding the sort routine, to enable column sorting in this grid, you just set the AllowSorting attribute to
True. The control takes care of all the sorting logic for you internally
"
and i want to make sure that work for somebody here, because i did try it and told me that the sort procedure is missing, which mean still i have to write some codes to handle the sort feature. anyway i just want to know if that is possible of course i would like to try it.

thanks all. regards.
Similar Threads
Reputation Points: 56
Solved Threads: 56
Posting Pro in Training
jbisono is offline Offline
433 posts
since May 2009
Sep 30th, 2009
1

Re: General Question about GridView framework 3.5

The automatic sorting feature will work only if you bind the GridView with DataSource controls like SqlDataSource and ObjectDataSource. These controls automatically take care binding data with GridView. Therefore the sorting feature also handled automatically by them.

If you bind the GridView with a DataSet , then you need to call DataBind() explicitly method to bind the data source . Therefore you need to write the code to provide sorting feature.
Last edited by Ramesh S; Sep 30th, 2009 at 2:36 am.
Reputation Points: 165
Solved Threads: 113
Posting Pro
Ramesh S is offline Offline
580 posts
since Jun 2009
Sep 30th, 2009
0

Re: General Question about GridView framework 3.5

Got it!!! thanks for your comment.
Reputation Points: 56
Solved Threads: 56
Posting Pro in Training
jbisono is offline Offline
433 posts
since May 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Expanding tree view control Problem
Next Thread in ASP.NET Forum Timeline: removing sub>sub menu item





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC