By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,838 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,838 IT Pros & Developers. It's quick & easy.

Adding multiple controls to Item Template column of Grid at Runtim

P: n/a
I am creating a Datagrid at runtime and I have to create all the columns of
grid at runtime... I am facing problem in the item template column. Here I
want to place more than one control... For example Suppose there is a
template column tc and i want to place two drop downlist in this tc say
DrpList1 and DrpList2... Can anyone provide me any idea how to do this... I
am getting many examples of adding items to the item template column by
implementing ITemplate and it is also working... but they are only associated
with the single control...
Mar 24 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I use here 2 controls within the template; a checkbox and a label:

http://www.societopia.net/Samples/Da...Delegates.aspx
I use here textboxes or radiobuttonlists with validators:

http://www.webswapp.com/codesamples/...idview.aspxspx

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Abhishek" wrote:
I am creating a Datagrid at runtime and I have to create all the columns of
grid at runtime... I am facing problem in the item template column. Here I
want to place more than one control... For example Suppose there is a
template column tc and i want to place two drop downlist in this tc say
DrpList1 and DrpList2... Can anyone provide me any idea how to do this... I
am getting many examples of adding items to the item template column by
implementing ITemplate and it is also working... but they are only associated
with the single control...

Mar 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.