取dataGridView的行和列的信息

int rows = dataGridView1.CurrentRow.Index;
int coll = dataGridView1.CurrentCell.ColumnIndex;
看到很多人在网上找,取dataGridView的行和列的信息,今天偶而发一下。
posted @ 2009-09-22 16:52  韩天伟  阅读(529)  评论(0编辑  收藏  举报