GridView dynamiclly adding TemplateField

L

lupina

Hi,
I need to add controls to the TemplateField of GridView dynamiclly at
runtime (beacuse my GridView handle faw different DataSets, so I cannot do
it in aspx file).
The BoundFields I create like below:

//GridView gv;
BoundField gg_typ = new BoundField();
gg_id.DataField = "wm_id";
gg_id.HeaderText = "wm_id";
gv.Columns.Add(gg_id);

I want add TemplateField to my GridView similiar.
Can anyone tell me how to do it?
 

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

Top