Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Datagrid with new column for each row in databtable - is it possible?

Thread Tools

Datagrid with new column for each row in databtable - is it possible?

James Radke
Posts: n/a

I am creating an web page (using VB.NET) and would like to have the
following format:

column 1 column 2 column 3 ....

Lane 1 2
Width xx xx
Yards xx xx
Breaks xx xx
QC (dropdownlist) (list) (list)
RC (dropdownlist) (list) (list)

Each time I select a series to display, there can be 1 to (xx) lanes to be
displayed (I plan on putting the control within a DIV with the width set to
allow a scroll.....).

What I want to know, is if there a way to create a datagrid (or other .net
control such as repeater / datalist) that will allow me to dynamically
create a new COLUMN for each row of data in my table versus creating a new
row for each row of data in the table as the datagrid currently does so I
can create such a display?

If there is, does anyone have any examples to share?



Reply With Quote
Posts: n/a
Hi Jim,

You may take a look following article to see if it will help:
frlrfSystemWebUIWebControlsDataGridColumnCollectio nClassAddTopic.asp

This article discuss about Add Method of DataGridColumnCollection class. We
can add a column dynamically via it.

Microsoft Online Support

Get Secure!
(This posting is provided "AS IS", with no warranties, and confers no

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview: embedding a texbox and button in each row, passing info from that row to a function? Ken Fine ASP .Net 4 07-14-2008 07:51 AM
Datagrid - each item having two headers one displayed by row another by column Krishna ASP .Net 0 07-13-2006 07:36 AM
how do i? Full scan of each control in each grid row cell John Blair ASP .Net 1 08-03-2005 11:02 AM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
Looping through all rows and columns (to get sub-totals for each column and row) Ralph Hartman ASP .Net Datagrid Control 1 08-25-2004 12:00 PM