private void UserView_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0 && e.ColumnIndex == 26)
{
int val = Convert.ToInt16(this.UserView.Rows[e.RowIndex].Cells[26].Value);
if (val == 1)
{
this.UserView.Rows[e.RowIndex].Cells[26].Value = 0;
}
else
{
this.UserView.Rows[e.RowIndex].Cells[26].Value = 1;
}
}
}
DataGridView单元格点击程序
最新推荐文章于 2020-05-13 20:22:01 发布