Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.net add a template field that is also bound

Hi. The following code is being used in ASP.net to add a boundfield and then a template field.
What code would you use to add a template field that is also bound

      BoundField bfield = new BoundField();
        bfield.HeaderText = "Name";
        bfield.DataField = "Name";
        GridView1.Columns.Add(bfield);
 
        TemplateField tfield = new TemplateField();
        tfield.HeaderText = "Country";
        GridView1.Columns.Add(tfield);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Obadiah Christopher
Obadiah Christopher
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks