Re: Sorting GridView control
Are you using DataGridView, or is GridView a seperate control?
The DataGridView should sort itself when clicking the headers, if it doesn't try looking for an event for "column header click" or something similar and put your code in there. Try looking at the properties of the DataGridView control to see if you have sorting turned off, or clickable headers turned off.
Re: Sorting GridView control
Quote:
Originally Posted by
pgrammer
Are you using DataGridView, or is GridView a seperate control?
The DataGridView should sort itself when clicking the headers, if it doesn't try looking for an event for "column header click" or something similar and put your code in there. Try looking at the properties of the DataGridView control to see if you have sorting turned off, or clickable headers turned off.
i'm using GridView control, i have set those sorting property to true.... but when i click on the header it ask for handler of the sorting... i have create the handler but don't know what should write in the handler...
can anyone can provide me sample??
Re: Sorting GridView control
Quote:
Originally Posted by
lsy
i'm using GridView control, i have set those sorting property to true.... but when i click on the header it ask for handler of the sorting... i have create the handler but don't know what should write in the handler...
can anyone can provide me sample??
http://www.google.com/search?hl=en&q...q=sorting+data
http://www.google.com/search?hl=en&q...ly&btnG=Search
http://social.msdn.microsoft.com/Sea...ng%20c%23&ac=1
Re: Sorting GridView control
Quote:
Originally Posted by
lsy
i'm using GridView control, i have set those sorting property to true.... but when i click on the header it ask for handler of the sorting... i have create the handler but don't know what should write in the handler...
can anyone can provide me sample??
Maybe you show your code reagrding that control se we can show you the adequat code for your grid