We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hierarchy look virtual grid

Thread ID:

Created:

Updated:

Platform:

Replies:

3524 Mar 26,2003 10:00 PM UTC Mar 27,2003 08:26 PM UTC Windows Forms 4
loading
Tags: GridControl
Sue Harris
Asked On March 26, 2003 10:00 PM UTC

Hi, I'm wanting to have collapsable rows within my virtual grid (Like the Hierachy. After thinking about it, it seems unreasonable to expect the virtual grid to do it for me, but is there any way for me to specify a row is a collapsable row? Does anyone have any ideas how I can do this? ( I can only think of overriding drawing the cell and catching the click event ) Thanks Sue

Administrator [Syncfusion]
Replied On March 26, 2003 11:25 PM UTC

The \grid\samples\in depth\virttreegrid samples has collapsible rows in a virtual grid.

Sue Harris
Replied On March 27, 2003 01:53 AM UTC

When I looked at that sample, it was still had some bound data ( which it seemed to use as the guide to the hierarchy ), whereas my grid is entirely virtual, populated using the GridQueryCellInfo event. Is there something I can set in the Style that indicates it is a child or has children? Or am I missing something obvious? Thanks, Sue

Administrator [Syncfusion]
Replied On March 27, 2003 01:40 PM UTC

The VirtTreeGrid sample has a custom TreeCell type where it uses the Tag to indicate an indentation level. Simarily, you could use the Tag to indicate whether this row has a child or not. If you want to track 2 state properties, like indentation level and whether the row has a child, you could derive a class to hold these properties and set the Tag to instances of your derived class. You would have to get the values for this extended Tag property for your external data source. (And this is the hard part. Ie, given a row, return whether it has a child, and how many parents does it have so you can draw the header properly).

Sue Harris
Replied On March 27, 2003 08:26 PM UTC

Excellent, your suggestion has helped me solve the exact problem. (I was looking at the wrong sample to start with which is why I was so confused). Thanks!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;