VB.NET Datagridview - capture DataGridViewCheckBoxColumn click event

VB.NET Datagridview - capture DataGridViewCheckBoxColumn click event

瀏覽:449
日期:2025-06-23
private void dg_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 0) { dg[0, e.RowIndex].Value = ! Convert.ToBoolean(dg[0, e.RowIndex].Value); // now you can check what is its current value and what do you want ......看更多