values from gridview

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Hi,
Try this code:

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

Thanks and Regards,
Manish Bafna.
MCP and MCTS.
 
Back
Top