Customizing the data GridView in ASP.net

PhaZe

Platinum Member
Dec 13, 1999
2,880
0
76
Hello all,

I am building a very basic search site for some images. I am using visual studio 2008, ASP.net in c#. So far everything I have done is drag and drop.

The real question is how do I customize the GridView ? The default gridview is 1 column with however many rows the query pulls up.

Basically I want to be able to have 3 columns, and x rows.

Anyone have experience with this tool?

Thanks.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
It all depends on how you are using the DataGridView. If you have bound to a DataSet object then it should automatically add the columns, but if you are doing it all with custom Data objects then you should just be able to right click on the DataGridView in your Design view and select Edit Columns...
 

Title

Member
Aug 5, 2007
45
0
0
Have you tried using DataList to accomplish what you want? It is easier to customize by using "property builder" when you click the right arrow.