values from gridview

G

Guest

HI

I am trying to get the values from my gridview to process them in another
function.
I tried gridview.rows(0).cells(0).tostring()?

thanks

B
 
G

Guest

Hi,
Try this code:

foreach (GridViewRow row in GridView1.Rows)
{
string col1Value = row.Cells[0].Text;
}

Thanks and Regards,
Manish Bafna.
MCP and MCTS.
 

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