DataGridView checkbox column - value and functionality

后端 未结 11 1758
一向
一向 2020-11-28 12:17

I\'ve added a checkbox column to a DataGridView in my C# form. The function needs to be dynamic - you select a customer and that brings up all of their items that could be s

11条回答
  •  悲&欢浪女
    2020-11-28 12:40

    If you try it on CellContentClick Event

    Use:

    dataGridView1.EndEdit();  //Stop editing of cell.
    MessageBox.Show("0 = " + dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
    

提交回复
热议问题