Junior,
Instead of indicating if the row is visible or not, why not bind the
DataGridView to a dataview which is filtered on the column that is storing
the true/false value?
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"osmarjunior" <os*********@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
I didn't posted the exception, 'cause I just got it in portuguese.
I've tried to invoke the method ClearSelection() before the foreach
loop.
Without success... :(
myGrid.ClearSelection();
foreach (DataGridViewRow row in myGrid.Rows)
if ((bool)row.Cells[0].Value.Equals(false))
row.Visible = checkbox.Checked;
Your solution maybe can be a problem if I have one single row in
DataGridView.
Then if I try to turn it to invisible??? Because, in this case, there
is no next or previous rows to select...
Thanx...
Junior.