I'm writing a windows C# application which I wish to use data grid views, but unable to find a good tutorial on to take complete control of the datagrid eg: add columns, add data etc.
Asked
Active
Viewed 5.6k times
3 Answers
12
I like some of the tips provided here

Jehof
- 34,674
- 10
- 123
- 155

Jared Updike
- 7,165
- 8
- 46
- 72
-
3Nice! There's a reference to a proper tutorial: http://dotnetperls.com/Content/DataGridView-Tutorial.aspx – Zen Feb 04 '09 at 11:28
-
3The old link seems to be dead. I think this is the new one: http://www.dotnetperls.com/datagridview – RolandK Mar 15 '12 at 12:21
-
1Other links are dead. This is the current link for the tutorial http://www.dotnetperls.com/datagridview-tutorial – rpattabi Jan 28 '13 at 06:54
-
1While this may theoretically answer the question, [it would be preferable](http://meta.stackexchange.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Bill the Lizard Dec 18 '13 at 12:12
1
You can take a look here: http://msdn2.microsoft.com/en-us/library/k39d6s23.aspx
But the best one might be this: http://www.macoratti.net/08/08/c_pdgv1.htm I think you can get the idea from the code, since the comments are in portuguese (you can try google translate).

Eduardo
- 7,631
- 2
- 30
- 31
0
I highly recommend using an MVC/P pattern for implementing DataGridView in Winforms - it makes life a lot easier in the long run, even though it may seem a lot of work to do up front.

mlennox
- 122
- 4