• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Customizing the data GridView in ASP.net

PhaZe

Platinum Member
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.
 
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...
 
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.
 
Back
Top