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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Virtual Grid - Collapsible Data Source

Thread ID:

Created:

Updated:

Platform:

Replies:

22037 Dec 1,2004 10:43 PM UTC Dec 2,2004 03:22 PM UTC WinForms 3
loading
Tags: GridControl
Marju Makinen
Asked On December 1, 2004 10:43 PM UTC

Hello, I tested the sample for Virtul Tree Grid. The sample workd fine. The question I have is how could I implement the Expand/Collapse (+/-) using my own data (from a database table(s)). Is this possible? When I tested the sample, the data for expand and collapse (+/-) came from the ''datasample.cds'' ''collapsible data file'' (please correct me if I''m wrong). What kind of file is this ''datasample.cds''? How can I create similar functionality using my own data from database? I can create a virtual tree from my own data, but I''m missing the (+/-). My format is diferent, so I can''t use the sample .cds file. Thank you, Marju

Administrator [Syncfusion]
Replied On December 1, 2004 10:58 PM UTC

If your database is a dataset with related tables, and the collapsible data is defined by these relations, then it will be simpler for you to use a GridDataBoundGrid to get this functionality. See this sample, Syncfusion\Essential Suite\2.1.0.9\Grid\Samples\DataBound\Hierarchical\GDBGTreeLines. The data for the VirtTree sample is a custom format that is defined in the code of that sample. If you want to use the technique of that sample, then you would have to write code to take your data and set up the objects used in the sample. If possible, using a hiearchical GridDataBoundGrid will be much simpler.

Administrator [Syncfusion]
Replied On December 2, 2004 03:03 PM UTC

I trid to access the sample in ''www.Syncfusion\Essential Suite\2.1.0.9\Grid\Samples\DataBound\Hierarchical\GDBGTreeLines'' but I got a message that it is not available or I don''t have access to it. I will try the bound grid, but I liked the way Virtual Tree Grid looks. One more question about the virtual grid: Can I create the format for (+/-) in code or do I still need the ''.cds'' file? Thank you, Marju >If your database is a dataset with related tables, and the collapsible data is defined by these relations, then it will be simpler for you to use a GridDataBoundGrid to get this functionality. See this sample, Syncfusion\Essential Suite\2.1.0.9\Grid\Samples\DataBound\Hierarchical\GDBGTreeLines. > >The data for the VirtTree sample is a custom format that is defined in the code of that sample. If you want to use the technique of that sample, then you would have to write code to take your data and set up the objects used in the sample. If possible, using a hiearchical GridDataBoundGrid will be much simpler.

Administrator [Syncfusion]
Replied On December 2, 2004 03:22 PM UTC

I found the sample. Thank you.

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

;