如何遍历DataGridViewRow列?我只想得到我拥有的列数,然后遍历它们并获得值。
DataGridViewRow
发布于 2011-05-16 17:55:02
您可以使用Cells属性来获取行具有的所有值
Cells
foreach(DataGridViewCell cell in row.Cells) { get value by cell.Value }
列数等于单元格的个数
https://stackoverflow.com/questions/6015625
相似问题