ASP.NET stuff....

I'm interested in creating a server control that creates some container
controls, one of them being a datagrid.  I want to add all columns to the
datagrid at runtime(dynamically), which is no problem until I want to add
another control, like a checkbox or datalist to a column.  What type of
column to I need to add and what would the full syntax be? My guess is a
templateColumn, but how do I do this programmatically without putting any
of the code in the .aspx page? I've seen examples of adding a
templatecolumn at runtime and they expose a property of the server control
of type ITemplate and I believe that the setting of that property is
dependent on a template being defined in the .aspx page, but I'm not sure.
I want to simply put a placeholder object on the aspx page and in the code-
behind for the page, create an instance of this server control I'm making
and add it to the placeholder, so I don't want the control to depend on
anything in the page code. I want everything to be done inside the server
control.

Any help and examples would be appreciated.

Thanks,
Rachael

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to