如何在C#中使用行索引和列索引从datagridview获取单元格值?

问题描述:

我有一个datagridview dgvList 。。然后我想获取特定行和列的单元格值,而不使用selectedRows属性。

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];


尝试一下

myvalue =dgvList.Rows[rowindex].Cells[columnindex].Value.ToString();