Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

windows forms datagrid control links?

anyone know of a good web site that goes into the windows forms datagrid control? I'm talking intermediate and advanced topics, like: hiding columns, knowing what row is selected (i think i know this), making a grid non-editable.

Also, who knows how to use a datareader to get data into the datagrid? I'm using a DataAdapter, fine. But, a datareader will be faster. As mentioned, i'm looking for the grid to be non-editable.

Patrick
Friday, April 08, 2005

Try this site for good DataGrid info:

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp

In order to get from a DataReader to a DataGrid you will need an intermediary class that can be bound to the grid....

http://www.ondotnet.com/pub/a/dotnet/2003/06/02/collectionbase.html

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconinterfacesrelatedtodatabinding.asp

http://www.codeguru.com/columns/VB/article.php/c6519/

http://aspnet.4guysfromrolla.com/articles/102302-1.aspx

Jeff Mastry
Sunday, April 10, 2005

Yep, i found
"George Shepard's windows forms faq"
yesterday and have been in heaven since.

tons of different ways to implement the same thing.

Patrick
Sunday, April 10, 2005

*  Recent Topics

*  Fog Creek Home