GridView1.Rows[r].Cells[i].Text problem

  • Thread starter Thread starter Steven Blair
  • Start date Start date
S

Steven Blair

Using the code:

((GridView)c).Rows[r].Cells.Text

allows me to get the text field from each column, except columns with a
LinkButton in them (template). This property is always blank.

Anyone know how I can populare the Text field?

Regards,

Steven
 
you want to populate the text property of the LinkButton?

I believe i did something similar to this awhile ago, I think I used:

LinkButton myLinkButton = (LinkButton)c.Rows[r].Cells.Controls[0]

That may not be correct, but you get the idea. its been awhile since I
needed to do that.
 

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