| | |
General Question about GridView framework 3.5
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
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.
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.
If your already resolved your issue, flag it as solved.
José Bisonó
José Bisonó
•
•
Join Date: Jun 2009
Posts: 442
Reputation:
Solved Threads: 82
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.
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.
![]() |
Similar Threads
- general question about calling functions (C++)
- General Thread Question (C++)
- VC++ and .NET Framework general question (C++)
- Using a Data Feed direct from a System (General Question)? (Computer Science)
- General Multithreading question... (Java)
- General Perl & Firefox cookie question (Perl)
Other Threads in the ASP.NET Forum
- Previous Thread: Expanding tree view control Problem
- Next Thread: removing sub>sub menu item
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos appliances application asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions css dataaccesslayer database datagridview datagridviewcheckbox datalist development dgv dialog dropdownlist dynamically edit expose feedback fileuploader fill flash form formatdecimal formview grid gridview gudi iframe iis image javascript listbox login microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols parent radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security select sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking treeview unauthorized validatedate validation vb.net video videos view virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





