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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -