c# - how to read data from one column of datagridview -
i want read info 1 column of datagridview. datagridview contains many columns want read cells 1 column. read columns using code:
foreach (datagridviewcolumn col in datagridview1.columns) col.name.tostring();
but want read cell particular column.
maybe helps too. getting 1 cell:
string info = (string)datagridview1[icol, irow].value;
then can loop rows , columns.
documentation.
c# winforms datagridview
No comments:
Post a Comment