怎么获取datagridview 当前行的上一行
DGVItem.CurrentRow +1 应该是不行的 有没有别的方法呢
[解决办法]
dataGridView1.SelectedRows[dataGridView1.CurrentRow.Index - 1]
int i=this.DataGridView1.CurrentCell.RowIndex;
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];