Programmatically add linkbutton to gridview

  • Thread starter Thread starter Morten
  • Start date Start date
M

Morten

Hi!

I'm trying to figure out how I can programmatically add linkbuttons to rows
in a gridview. An example would be greatly appreciated.

Thanks in advance

Morten
 
Hello Morten,

In a IE click ViewSource and find out which html element your gridView was
transfered in, I reckon it's just <table>
Then in code use smth like HtmlTable tbl = (HtmlTable)Page.FindControl("gridView1");

iterate through the tbl.Rows and add new element to it

M> I'm trying to figure out how I can programmatically add linkbuttons
M> to rows in a gridview. An example would be greatly appreciated.

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

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

Back
Top