The text of this article is not in this database — only its details are. Read it on the old site: GridView Sorting
11 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: GridView Sorting
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
majid aboPosted Nov 19, 2014, 1:54 AM
very helpfull
hamil cookPosted Oct 16, 2013, 5:35 AM
Sort grid data to GridView in .NET, http://www.kettic.com/winforms_ui/csharp_guide/gridview_sorting.shtml
Ayush GabaPosted Oct 26, 2012, 5:06 AM
Hi I want same thing implemented in c# window application
Ayush GabaPosted Oct 26, 2012, 5:06 AM
Hi I want same thing in window application in c#
Ayush GabaPosted Oct 26, 2012, 5:05 AM
Hi I want same thing in window application in c#
zahid hazoorPosted Mar 29, 2012, 3:10 AM
how to get the above code
carlos calvoPosted Jul 11, 2011, 4:14 PM
very helpfull
Andrew FensterPosted Oct 5, 2010, 12:36 PM
You can sort the rows however you want. Take a look at the PopulateUserGrid( ) method. You know which column the user wants sorted. You know whether the user wants the data sorted ascending or descending. Then it's up to you to write the code that will do the sorting. In the downloadable example, there are several people with the same role. If you sort by role, they are displayed in the order they came from the data access layer. If you don't like this behavior, you can always change the code that does the sorting.
mark dineshPosted Oct 5, 2010, 10:25 AM
What if two rows are identical ? how tht will be sorted.