datagridview - Wrong data is taken from data grid view in c# -
i have datagridview1
2 columns , has data in it....
i tried content of rows in second column , place in string array body
looping this:
for (int j = 0; j < datagridview1.rowcount - 1; j++) { body[j] = datagridview1[1, j].value.tostring(); }
so problem is, give me contents of rows in first column instead 1 in second column...what might problem?
Comments
Post a Comment