TemplateField in grid view. How can i do that at code-behind?

F

Fernando Lopes

Hi.
I have a grid where i create its columns in runtime.
I tried create a templatefield in this grid view. In true, i need to create
a radiobutton column in my grid view.
I didin't had sucess.
How can i do that in code-behin?
Something like:
TemplateField tfield = new TemplateField();
tfiel.ItemTemplate = new RadioButton();
gridview.Columns.Add(tfield);

Thanks in advance.

Fernando Lopes
 

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