Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Dynamically Building Datagrid Columns

Thread Tools

Dynamically Building Datagrid Columns

Craig G
Posts: n/a
i want to build a datagrid to use as a register for a number of courses.
what i want to happen is that the tutor selects the course from a combo box.
this then builds a grid for all students enrolled on the course along with
the number of weeks the course has to run

i want the datagrid to build a column for each week of the course. and then
list the students in rows. with a checkbox being in every itemtemplate so
that the tutor can say if the student was present or not for the class in
that week

so that i end up with something like this - bit like a matrix

Week No 1 2 3 4 5 6 7
Craig G
Jim B

the problems occurs in that not all courses run the same duration so i need
to dynamically build the columns depending on the number of weeks the course
runs for. i know my way in & around the datagrids quite well but this little
task of dynamically building columns has me well n truely stumped

i stumbled upon this link but im not sure what use it is to me!

any help or pointers would be greatly appreciated!


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
dynamically building template columns jonefer ASP .Net Building Controls 4 05-26-2007 06:08 PM
Make some columns invisible in DataGrid dynamically =?Utf-8?B?ZGF2aWQ=?= ASP .Net 4 10-19-2005 04:18 PM
Datagrid dynamically generated template columns dissapearing ASP .Net 2 10-02-2005 07:43 PM
Binded Datagrid Formatting columns or hiding columns ton ASP .Net Web Controls 2 02-11-2004 04:09 AM
Columns and Inherited Datagrid...Active Schema does not support columns rob thomson ASP .Net Datagrid Control 0 09-04-2003 03:09 PM