Hello All,
I have a datagridview with a checkboxcolumn (bound) in it. I would like to implement 'select all' and 'deselect all' functions, but what I have tried so far has been way too slow.
This code takes almost two minutes for 400 rows. This is unacceptable!
The datagridview is bound to an xsd bindingsource, which I fill with a datatable.
What am I doing wrong...
Is there a way to set a certain value to a whole column for a datagridview, or for a datatable?
Greetz
VBMim
I have a datagridview with a checkboxcolumn (bound) in it. I would like to implement 'select all' and 'deselect all' functions, but what I have tried so far has been way too slow.
Code:
for (int i = 0; i < dgvItems.Rows.Count; i++)
dgvItems.Rows[i].Cells["check_analyze"].Value = true;
This code takes almost two minutes for 400 rows. This is unacceptable!
The datagridview is bound to an xsd bindingsource, which I fill with a datatable.
What am I doing wrong...
Is there a way to set a certain value to a whole column for a datagridview, or for a datatable?
Greetz
VBMim