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

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -