Create TemplateColumn Dynamically

L

Lubos

Hi,
I'd like to create TemplateColumn at runtime.
I want to add an Control (like Button,..) to this column.
Is there any example how to this this?

Thanks in advance,
Lubos

PS:
I can do this with the BountColumn:
BoundColumn bc2 = new BoundColumn();
bc2.DataField = "product_nm";
bc2.HeaderText = "Number";
myDataGrid.Columns.Add(bc2);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top