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.

How to make simple GridGroupingControl example look like a PropertyGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

119296 Jun 2,2015 07:41 PM Jun 15,2015 01:11 AM Windows Forms 8
loading
Tags: GridGroupingControl
tttmack
Asked On June 2, 2015 07:41 PM

Hello,

I would like to have a Windows Form control that looks something like the image below (which I believe is a PropertyGrid). I want something that looks pretty similar to this with collapsible/expandable headers and two columns of data under each header. I will not be binding to any data source, I just want to be able to enter custom values for both headers and entries.



I think the right Syncfusion control to use is your GridGroupingControl, but I am having a hard time finding sample code or documentation for creating a simple sample like this.

Is there a simple piece of sample code that shows how to make a control that looks like the one pictured above? Is there any PDF documentation that I can look at (web documentation is very slow to load and search)?

Thanks for your help.
Taylour

Arun Kumar V [Syncfusion]
Replied On June 4, 2015 12:02 AM

Hi Taylour,

Thanks for your interest in Syncfusion products.

The reported property grid like control can be easily achieved in Gridgrouping control. Please refer to the below outlook demo internal grid which depicts the same.

Sample: <Installed Path>\Syncfusion\EssentialStudio\<Installed version>\Windows\Showcase\Outlook Demo\CS

Please let us know if you have any concerns.

Regards,
Arun,

tttmack
Replied On June 4, 2015 12:56 PM

Hi Arun,

Is there an example that is more simple? That outlook example is in a somewhat large project and has a lot of dependencies on other parts of the app so it is very hard to decipher what is going on and what is needed to create a basic table.
Also the data is loaded from xml, I just want to be able to add the data manually for both the headers and the entries.

Thanks,
Taylour

Arun Kumar V [Syncfusion]
Replied On June 8, 2015 12:04 AM

Hi Taylour,

 

We have prepared a simple sample based on the provided reported scenario and have grouped a column based on that.

Code Snippet:

//Group the required column.

this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("Title");

Sample:
http://files2.syncfusion.com/dtsupport/directtrac/138610/Shipped_Sample_Dashboard-314647872.zip


Please refer to the attached sample.

 

Regards,

Arun.


tttmack
Replied On June 8, 2015 12:29 PM

Hi Arun,

The download link does not work. Could you please update it?

Thanks,
Taylour

Arun Kumar V [Syncfusion]
Replied On June 10, 2015 12:02 AM

Hi Taylour,

 

Sorry for the inconvenience caused.

 

Please refer to the modified simple Gridgrouping control sample with grouping.

Sample: http://www.syncfusion.com/downloads/support/directtrac/139966/ze/Grid_Sample1044522986

 

Regards,

Arun. 


Arun Kumar V [Syncfusion]
Replied On June 10, 2015 01:20 AM

Hi Taylour,

Sorry for the inconvenience caused.

Please refer to the modified simple Gridgrouping control sample with grouping.


Code Snippet:
//Group the necssary column.

this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("Title");

//Remove the Grouped column from visiblity, to have property grid like appearnce.

this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove("Title");

//Used expand all the groups.

this.gridGroupingControl1.Table.ExpandAllGroups();




Sample: http://www.syncfusion.com/downloads/support/forum/119296/ze/Grid_Sample-1603944597

Please let us know if you have any further concerns.


Regards,
Arun.


tttmack
Replied On June 11, 2015 07:30 PM

Thank you Arun, I was able to achieve what I was hoping to do using your sample code as a base.

Best Regards,
Taylour

Arun Kumar V [Syncfusion]
Replied On June 15, 2015 01:11 AM

Hi Taylour,

Thanks for the update.

We are glad to hear the reported behavior is achieved with the provided solution. Please let us know if you need any further assistance.

Regards,
Arun.

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.

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.

;