Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Hiding rows in the grid control? Collapse All
Subject Author Date
Dave M May 5, 2005 - 11:02 AM

Hi,

The CListCtrl-based control I wrote and am currently using has a feature that I had implemented that gives a user a context menu when he right-clicks on a cell. The context menu is dynamically generated, and offers the user a list of items to filter (or filter out, depending on how you look at it). For example, let’s say my listctrl has several rows, and one of the columns has colors in it. If the user wants to only see the rows that correspond to the color red, he would right click on a cell that contains "red", and would get a context menu like this:

Filter by column -> Red
Green
Blue

If he clicks Red, then my listctrl renders only the data that has Red in the color column. I can do this because I have two sets of data inside of my listctrl... 1) the master data (i.e. everything), and 2) the filtered set of data (where color == "red").

Does this make sense? Sorry if I rambled too much.

Dave M May 5, 2005 - 11:03 AM

I should have clarified my request... Basically, I’m asking if I need to delete everything from the gridwnd and then readd the filtered data. Or is there some way to hide rows?

Technical Support May 6, 2005 - 6:17 AM

We are working on the data provider component which should return partial ranges of the grid cells from other data provider instance according to filtering rules. Currently you need to remove grid rows to emulate this filtering effect.