Ken Robertson's Blog

Ramblings of a .NET developer

Full code for my DataGrid and WebControls issue

Posted the entire code for the page I was talking about in my previous post, DataGrid Help: Dynamically columned DataGrid and WebControls?

Any input is much appreciated!  Thanks!

Posted: Feb 28 2004, 05:07 PM by qgyen | with 1 comment(s)
Filed under: ,

Comments

Justin Lovell said:

Hi Ken,

I do not think that you are looking for a DataGrid - CheckBoxList and the RadioButtonList seems to be thing that you are after. However, all of the control approaches will lean to one thing - construction of the controls must be consistant. For example, if you build three questions (three grids then in your case) - the controls that gets the users' input must be there during post back.

In addition, you will have to be smart with the page life cycle. I have always insisted on doing data binding before the Init event... and I have explained the reason why in this blog post:

http://blogs.aspadvice.com/jlovell/archive/2004/02/11/502.aspx

PS: I have not looked at your source yet but I hope this sheds some light for solving your dilema.
# February 29, 2004 3:44 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)