Can We create templateField Using C# code for gridview

Joined
Mar 19, 2008
Messages
2
Reaction score
0
Hi All,
I tried to create grid view and add atemplatefield but i don't know how to do it .
Can some one help me to do it.

Hre is the code which i tried.


GridView gv = new GridView();
TemplateField tf = new TemplateField();
tf.HeaderText = "Name";
tf.ItemTemplate ???!! <-- here is the place where i'm stuck in.

I want to join to columns (Fname & Lname in the DB to Name column in GridView)
 

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

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top