Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / November 2006

Tip: Looking for answers? Try searching our database.

DataGridView in 2.0 Framework - Sorting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris  Moore - 14 Nov 2006 15:21 GMT
All,

I am having a considerable amount of difficulty with what should be a
very simple problem. I have a DataGridView that is bound to a
collection of objects that displays (and edits) selected objects
appropriately. However, I can find no way to activate sorting by
column. I want to be able to do the normal thing: click on a column and
have the rows sort (alphabetically) according to the contents of the
selected column. According to the documentation, I should be able to
set the column's sort mode to "Automatic" and the sort glyph should
become available on the column. This, however, does not happen. The
sort glyph does not appear and thus I cannot sort. Anybody know what
the heck's going on here?

Thanks
Chris.
Bill Block - 14 Nov 2006 15:49 GMT
Consider using a SortableBindingList implementation.  Michael Weinhardt
wrote a good article on it for MSDN a while ago...

http://msdn2.microsoft.com/en-us/library/ms993236.aspx

Bill
Kevin Spencer - 14 Nov 2006 16:42 GMT
Check out the official DataGridView FAQ:

http://www.windowsforms.net/Samples/Go%20To%20Market/DataGridView/DataGridView%2
0FAQ.doc


Signature

HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

Any experience you can walk away from
is a good one.

> All,
>
[quoted text clipped - 12 lines]
> Thanks
> Chris.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.