GridView dynamiclly adding TemplateField

  • Thread starter Thread starter lupina
  • Start date Start date
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?
 
Back
Top