views:

8346

answers:

6

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.

A: 

Sorry for any misunderstanding, but I'm actually creating a windows application and not asp.net webiste.

instigator
A: 

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.

Selecting a MVC/MVP Implementation for a Winforms Project

mlennox
A: 

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
+3  A: 

I like some of the tips here:

http://dotnetperls.com/Content/DataGridView-Tips.aspx

Jared Updike
Nice! There's a reference to a proper tutorial: http://dotnetperls.com/Content/DataGridView-Tutorial.aspx
Zen
@fabrizi0: thanks for the link
Jared Updike
A: 

An application, not a website!!!

A: 

You can find a simple datagridview tutorial here

http://csharp.net-informations.com/datagridview/csharp-datagridview-tutorial.htm

gever

gever