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

grid view control(TemplateColumn)

P: 17
how can I add a templateColumn Dynamically, to a GridView Control ?
Dec 3 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 390
There is something in asp.net 3.0

TemplateField bfield = new TemplateField();
bfield.HeaderTemplate = new GridViewTemplate("","");

bfield.ItemTemplate = new GridViewTemplate("","");
Grd.Columns.Add(bfield);
Dec 3 '07 #2

Shashi Sadasivan
Expert 100+
P: 1,435
TemplateField is a part of the .Net 2.0 Framework, and is supported by .Net 3.5
Dec 3 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.