110,545
社区成员
发帖
与我相关
我的任务
分享
int rowIndex = this.dataGridView1.CurrentCell.RowIndex;
DataGridViewRow dgvr = rowIndex == 0 ? null : this.dataGridView1.Rows[rowIndex];
int rowIndex = this.dataGridView1.CurrentCell.RowIndex;
DataGridViewRow dgvr = rowIndex == 0 ? null : this.dataGridView1.Rows[rowIndex];
int i=this.DataGridView1.CurrentCell.RowIndex;
dataGridView1.SelectedRows[dataGridView1.CurrentRow.Index - 1]