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.

GridGroupingcontrol general help

Thread ID:

Created:

Updated:

Platform:

Replies:

72404 Mar 17,2008 07:18 PM Apr 10,2008 08:43 AM ASP.NET Web Forms (Classic) 6
loading
Tags: Grouping
Todd
Asked On March 17, 2008 07:18 PM

Are there any samples or how to guides for binding an object hierarchy to an ASP.NET GridGroupingControl were I can customize the column names of the child collections?

I'm not sure if I should be setting up GridRelationDescriptor objects within code and how best to customize my columns within child collections.

Thanks,
Todd



Administrator [Syncfusion]
Replied On March 24, 2008 09:02 AM

Hi Todd,

We are working on this issue. We will update you soon.

Regards,
Janagan.


Administrator [Syncfusion]
Replied On March 28, 2008 07:48 AM

Hi Todd,

Thank you for your patience.

If your intention is to bind an object datasource to the gridgrouping control it can be achieved by the following code:



$ sfwg:GridGroupingControl ID="GridGroupingControl1" runat="server" BorderCollapse="Separate" DataSourceID="ObjectDataSource1" $

$asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
TypeName="EmployeeList_CS" SortParameterName="SortExpression" EnablePaging="True"
MaximumRowsParameterName="PagesSize"
SelectMethod="GetRecords"
DeleteMethod="DeleteRecord"
InsertMethod="InsertRecord"
UpdateMethod ="UpdateRecord"
SelectCountMethod="GetRowsCount"
StartRowIndexParameterName="StartRow"$
$/asp:ObjectDataSource$



Note: We have used '$' instead of '<'.

Also, Please refer the sample that is shipped with Essential GridGrouping Web to get more details regarding this issue

C:\Documents and Settings\{user}\My Documents\Syncfusion\EssentialStudio\6.1.0.34\Web\grid.grouping.web\Samples\2.0\GettingStarted\BindingToAccessDataSource\cs

If I have misunderstood your requirement, could you please explain me in detail, so that I can work in
depth and try to send a better solution?

regards,
Janagan.




Todd
Replied On March 28, 2008 05:37 PM


I’ve got lots of nested object hierarchies we would like to bind to grids for an treeview display of data. I’ve seen the examples on your website how to do this with a DataSet, but I can not find examples with object hierarchies. Can you point me to a sample?

So in other words the parent collection might be Orders, and each Order would contain a collection of OrderDetails, and each OrderDetails might contain and so on. How do I bind this object hierarchies to a grid so that I can customize the columns I want for the different levels? I would like to do this within the ASP.NET code as much as possible.

Thanks,
Todd





Administrator [Syncfusion]
Replied On April 1, 2008 07:17 AM

Hi Todd,

Sorry for the inconvenience.

To bind an object datasource to a grid grouping control ,Please refer the sample in the link below:

http://www.syncfusion.com/support/user/uploads/objectdatasource_ca5f9820.zip

Please try running the above sample and let me know if this helps.

Regards,
Janagan.



Todd
Replied On April 4, 2008 11:20 AM

My question was about customizing the child columns within a grid that contained a treeview. I don't think the sample contains a treeview.

Thanks,
Todd



Janagan [Syncfusion]
Replied On April 10, 2008 08:43 AM

Hi Todd,

Thanks for the update. SOrry for the inconvenience caused.

If your intention is to customize the column names of the child collections, it can be achieved by the following code:



gridRelationDescriptor.ChildTableDescriptor.Columns[2].HeaderText = "Changing";



For an tree view display of GridGrouping control, Please refer the sample that is shipped with Essential GridGrouping Web in the link below:

C:\Documents and Settings\{user}\My Documents\Syncfusion\EssentialStudio\6.2.0.32\Web\grid.grouping.web\Samples\2.0\RelatedTables\SelfReferentialGrid\cs

If I have misunderstood your requirement, could you please explain me in detail so that I could analyse further and provide you a better solution?

Regards,
Janagan.




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.

;