Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the cell value from a datagridview using row index and column index in c#?

I have a datagridview dgvList.. Then I want to get the cell value of a particular row and column, without using the selectedRows property.

ie:

myvalue = dgvList[2nd row][1st column];
like image 776
Nandu PH Avatar asked May 05 '15 06:05

Nandu PH


1 Answers

Try This

myvalue =dgvList.Rows[rowindex].Cells[columnindex].Value.ToString();
like image 77
Pradnya Bolli Avatar answered Oct 21 '22 05:10

Pradnya Bolli