c# - How can I get Control Inside DatGridView columns -
how can controls checkbox in datagridviewcheckboxcell combobox in datagridviewcomboboxcell ?
foreach (datagridviewrow row in dgvperformance.rows) { datagridviewcheckboxcell chk = (datagridviewcheckboxcell)row.cells[6]; //i need find checkbox in chk }
you can't checkbox
control datagridviewcheckboxcell
, can value:
foreach (datagridviewrow row in dgvperformance.rows){ datagridviewcheckboxcell chk = row.cells[6] datagridviewcheckboxcell; if(chk != null && (bool)chk.value){ //checked, } }
Comments
Post a Comment