how to read data from one column of datagridview
c#, datagridview, winforms
Solution
Maybe this helps too. To get one cell:
string data = (string)DataGridView1[iCol, iRow].Value;
Then you can simply loop rows and columns.
Documentation.
Problem
I want to read data from one column of datagridview. My datagridview contains many columns but I want to read all cells but only from one column. I read all columns using this code: ``` foreach (DataGridViewColumn col in dataGridView1.Columns) col.Name.ToString(); ``` But I want to read all cell from particular column.