Asked by:
Need Help? Check out the DataGridView FAQ!

-
text/html 11/30/2005 7:07:11 PM Mark Rideout 5
I've finished writing the first DataGridView FAQ. This isn't just a list of questions, but a comprehensive overview of the DataGridView. Please reply to this thread with addition Q/A questions, corrections, or suggestions for improvement.
http://www.windowsclient.net/Samples/Go%20To%20Market/DataGridView/DataGridView%20FAQ.doc
There are also a set of DataGridView samples that help with common areas available at
http://www.windowsclient.net/Samples/Go%20To%20Market/DataGridView/DataGridView%20Samples.zip
thanks-mark
DataGridView Program Manager
Microsoft
This post is provided "as-is"Wednesday, November 30, 2005 7:07 PM
General discussion
All replies
-
text/html 12/6/2005 2:26:22 AM oceanX0 0I can't seem to get thru.
http://www.windowsforms.net/Samples/Go%20To%20Market/DataGridView/DataGridView%20FAQ.doc
This object has been blocked
Tuesday, December 06, 2005 2:26 AM -
text/html 12/6/2005 9:48:55 PM Mark Rideout 0
Sounds like a firewall somewhere in your internet connection. Can you download the samples?
-mark
DataGridView Program Manager
Microsoft
This post is provided "as-is"Tuesday, December 06, 2005 9:48 PM -
text/html 12/8/2005 9:48:13 AM dg78 0Hi Mark,
Thanks for the DataGridView Faq, it is great ..
.. but i think it will be greater if there is also the code in vb.net
Is it possible ?
Converters are not always good (almost in 2.0) and there are some differences between c# and vb.
Cheers
DominiqueThursday, December 08, 2005 9:48 AM -
text/html 12/8/2005 7:42:34 PM Mark Rideout 0
I'll put that request down and hopefully some time in the future this can be done. Thanks for your comments!
EDIT: If there are specific questions in the FAQ or samples that you would like in VB please let me know. The majority of the FAQ is language neutral.
-markDataGridView Program Manager
Microsoft
This post is provided "as-is"Thursday, December 08, 2005 7:42 PM -
text/html 12/13/2005 6:08:04 PM philipsh 0The samples download link must be off. I got WebBrowser samples.Tuesday, December 13, 2005 6:08 PM
-
text/html 12/13/2005 6:22:13 PM Mark Rideout 0Thanks. We'll try and get this fixed. Something changed on WindowsForms.net.
EDIT: Fixed
-mark
Program Manager
Microsoft
This post is provided "as-is"Tuesday, December 13, 2005 6:22 PM -
text/html 12/20/2005 2:08:19 AM JerryMcR 0That you Mark. That one is going in my development folder.Tuesday, December 20, 2005 2:08 AM
-
text/html 1/24/2006 3:05:10 AM David Burela 0how about adding how to print datagridviews?Tuesday, January 24, 2006 3:05 AM
-
text/html 1/24/2006 6:33:06 PM Mark Rideout 0
I'll do some research and see if there is a good answer to this.
-mark
DataGridView Program Manager
Microsoft
This post is provided "as-is"
Tuesday, January 24, 2006 6:33 PM -
text/html 2/3/2006 3:47:51 PM Steve Thornton 0
Hi Mark thanks for the FAQ's it's great help.
I have used you example class TextAndImageColumn.
I seem to be having trouble instantiating the class. My columns and rows have to be created dynamically as they change for different views of the booking system I am writing. So i have to clear the columns and re-create them all the time. I am using something like the code below to create the column and cell objects but when I access the dataGridView1.CurrentCell - i can't se the image property ?
TextAndImageColumn newCol = New TextAndImageColumn();
TextAndImageCell newCell = New TextAndImageCell();
dataGridView1.Columns.Add(newCol);
dataGridView1.Rows.Add(newCell);
Hope you can help - and again thanks very much for the direct help.
btw - seems to have been an odd thing to miss out from dataGridView - Even good old MSFlexGrid could show both!
Friday, February 03, 2006 3:47 PM -
text/html 2/3/2006 4:27:20 PM Mark Rideout 0
The CurrentCell is of type DataGridViewCell so you need to cast the CurrentCell to a DataGridViewImageCell type.
-mark
DataGridView Program Manager
Microsoft
This post is provided "as-is"
Friday, February 03, 2006 4:27 PM -
text/html 2/3/2006 6:03:20 PM Steve Thornton 0
Hi Mark, thanks for that!
Isn't the DataGridViewImageCell for use with the dataGridViewImageColumn ??
anyway I've casted the TextAndImageCell to the dataGridView1.CurrentCell
TextAndImageCell imgCell = (TextAndImageCell)dataGridView1.CurrentCell;imgCell.Image = imageList1.Images[2];
and it works fine. - Thank's you saved me loads of time
Steve
Friday, February 03, 2006 6:03 PM