473,396 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

This is annoying

Why can't you hide rows in a datagridview which is bound to a binding source ?
Jun 16 '06 #1
8 2785
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" <is***********@NOKUNKrocketcomp.com.au> wrote in message
news:es*************@TK2MSFTNGP04.phx.gbl...
Why can't you hide rows in a datagridview which is bound to a binding
source ?

Jun 16 '06 #2
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?

Jun 17 '06 #3
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" <is***********@NOKUNKrocketcomp.com.au> wrote in message
news:uc*************@TK2MSFTNGP04.phx.gbl...
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?

Jun 17 '06 #4
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?

Jun 17 '06 #5
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" <is***********@NOKUNKrocketcomp.com.au> wrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
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?

Jun 17 '06 #6
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.

Jun 17 '06 #7
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" <is***********@NOKUNKrocketcomp.com.au> wrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
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.

Jun 18 '06 #8
I gave up

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

Jun 18 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Google alias | last post by:
My trial period for Zend studio has just ended, I've requested a personal licence, and got it. After I've entered and rebooted by computer I still get a popup saying "Licence expired!" everytime I...
0
by: Uri Dor | last post by:
after debugging ends, the text editor (VS.NET 2003) doesn't scroll so the line the cursor on is visible. annoying!
1
by: Sol | last post by:
i have a web page with alot of checking on user input (if value is numeric,empty...)and i used to have an alert after each field was changed,which was of course quite annoying.So instead i now have...
2
by: Simon Wigzell | last post by:
Can I turn off that annoying little box with the save/print/send etc. icons in it that IE pops up whenever I mouseover a picture in my browser? I mean in my own web pages is there something I can...
2
by: Teddy | last post by:
Hello all I've just upgraded my g++ compiler to 3.3.3 on Cygwin. But there is always a annoying warnig message "no new line at end of file" no matter what code you writes. How to get rid of...
6
by: mark | r | last post by:
how do i automatically trigger functions like displaydate() in SP2 without getting that annoying security error. i use things like these almost every time on sites (see www.sicl.co.uk for my...
2
by: Philippe PERON | last post by:
Hello, An ACCESS application (mde) is installed on a computer looking at an mdb file on the same machine. As far as I know the application is installed thru a Wise Installer script. The...
2
by: Vijay Kerji | last post by:
Hi, Please go through the following scenario. 1)On Button click, Parent window opens a child window using showModalDialog 2)Button is a server control and showModalDialog script is registered...
52
by: Michael Hopkins | last post by:
Hi all We all know that C++ is a cleverly conceived multi-paradigm language that sacrifices very little in efficiency for what it delivers in terms of type-safety, encapsulation and generic...
84
by: braver | last post by:
Is there any trick to get rid of having to type the annoying, character-eating "self." prefix everywhere in a class? Sometimes I avoid OO just not to deal with its verbosity. In fact, I try to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.