private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e)
{
iTag = (int)this.Tag;
//if (iTag == 4)
//{
// if (e.ColumnIndex ==3)
// MessageBox.Show("该列为只读列", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
//}
//获取当前单元格的行号和列号
string rowIndex = e.RowIndex.ToString();
string colIndex = e.ColumnIndex.ToString();
}
{
iTag = (int)this.Tag;
//if (iTag == 4)
//{
// if (e.ColumnIndex ==3)
// MessageBox.Show("该列为只读列", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
//}
//获取当前单元格的行号和列号
string rowIndex = e.RowIndex.ToString();
string colIndex = e.ColumnIndex.ToString();
}