1
You need to go through all the lines on DataGridView
and check whether the CheckBox
is marked in this way
foreach(DataGridViewRow linha in dgView.Rows){ // passar por todas as linhas do dg
var cell = linha.Cells["ColunaDoCheckBox"] as DataGridViewCheckBoxCell; //pegar a celula que tem o checkbox
if((bool)cell.Value){ //verificar se está marcado
//salvar registro
}
}
Dude, explain your idea better. Edit your question and tell us what you’ve tried, enter the code you already have. This way your question will be closed because it is not clear enough.
– Jéf Bueno
See if it helps @jbueno
– WSS
Already better, you just want it? Save and the rest you’ve got ready?
– Jéf Bueno
Yes, I even have other grids here, but without the "check box"
– WSS