This is annoying

K

Kevin Spencer

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.
 
I

Ian Semmel

Error on row.Visible = false

"Row associated with the currency manager's position cannot be made invisible."
 
K

Kevin Spencer

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.
 
I

Ian Semmel

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)
 
K

Kevin Spencer

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

Ian Semmel

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.
 
K

Kevin Spencer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top