日期:2014-05-17 浏览次数:21042 次
private void kdgvAllShoes_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
{
dgvShoesRegion[curColumnIndex, curRowIndex].Value = dgvTmp.CurrentRow.Cells["名字"].Value;
dgvShoesRegion[curColumnIndex - 1, curRowIndex].Value = dgvTmp.CurrentRow.Cells["编码"].Value;
MessageBox.Show(dgvTmp.CurrentRow.Cells["编码"].Value + "|" + dgvTmp.CurrentRow.Cells["名字"].Value);
dgvTmp.Visible = false;
dgvShoesRegion.EndEdit();
MessageBox.Show(dgvShoesRegion.CurrentRow.Cells["shoesname"].Value.ToString());
}
dgvShoesRegion.CommitEdit(DataGridViewDataErrorContexts.Commit);