This is annoying

  • Thread starter Thread starter Ian Semmel
  • Start date Start date
I can. The question should be, why can't you?

Do you have any more information to go on?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.
 
Error on row.Visible = false

"Row associated with the currency manager's position cannot be made invisible."
 
Well, that's a start. How are you setting the Visible property of the row to
false? Also, note that if a Row is shared, it will throw an exception when
you try to set the Visible property to false. You can unshare it by
accessing it through the DataGridViewRowCollection.Item method. Is it the
current Row?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.
 
Well, what I was trying to do was apply a filter determined by a number of check
boxes at the top and just marking not visible those rows which did not apply by
looping thru each row. (foreach datagridviewrow)
 
Sounds like the Row may have been shared. If instead of a foreach, you use
the Item method to fetch each row, it should be ok.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.
 
I tried using Rows.SharedRow ( i ) but that didn't work.

Guess I will try another approach.

Tried to Google the problem and all I got was some German and Russian posts,
none of which I understood.

Thanks for your help.
 
Did you try Rows.Item(i)?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.
 
Back
Top