PC Review


Reply
Thread Tools Rate Thread

This is annoying

 
 
Ian Semmel
Guest
Posts: n/a
 
      16th Jun 2006
Why can't you hide rows in a datagridview which is bound to a binding source ?
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      17th Jun 2006
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.

"Ian Semmel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Why can't you hide rows in a datagridview which is bound to a binding
> source ?



 
Reply With Quote
 
Ian Semmel
Guest
Posts: n/a
 
      17th Jun 2006
Error on row.Visible = false

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


Kevin Spencer wrote:
> I can. The question should be, why can't you?
>
> Do you have any more information to go on?
>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      17th Jun 2006
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.

"Ian Semmel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Error on row.Visible = false
>
> "Row associated with the currency manager's position cannot be made
> invisible."
>
>
> Kevin Spencer wrote:
>> I can. The question should be, why can't you?
>>
>> Do you have any more information to go on?
>>



 
Reply With Quote
 
Ian Semmel
Guest
Posts: n/a
 
      17th Jun 2006
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)


Kevin Spencer wrote:
> 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?
>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      17th Jun 2006
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.

"Ian Semmel" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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)
>
>
> Kevin Spencer wrote:
>> 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?
>>



 
Reply With Quote
 
Ian Semmel
Guest
Posts: n/a
 
      17th Jun 2006
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.

Kevin Spencer wrote:
> 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.
>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      18th Jun 2006
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.

"Ian Semmel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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.
>
> Kevin Spencer wrote:
>> 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.
>>



 
Reply With Quote
 
Ian Semmel
Guest
Posts: n/a
 
      18th Jun 2006
I gave up

Kevin Spencer wrote:
> Did you try Rows.Item(i)?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Annoying Pop-up Gary Smith Windows XP Internet Explorer 9 23rd Mar 2006 11:40 PM
How Annoying!! bodhi General Discussion 5 19th May 2005 05:36 PM
annoying pop up syed ahmed Windows XP Internet Explorer 3 19th Jul 2004 11:28 PM
Re: annoying pop ups Jim Byrd Windows XP General 0 17th Jul 2003 07:35 PM
Annoying Pop Ups. Rally Windows XP Security 3 2nd Jul 2003 08:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 AM.