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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





46197 Jul 7,2006 05:29 PM UTC Jul 7,2006 08:22 PM UTC WinForms 3
Tags: Grouping
Shankar Ramasubramanian
Asked On July 7, 2006 05:29 PM UTC

How do i do this in gridgrouping ccontrol I have a Dataset with two tables Table1 ColumnA, Column B Table2 ColumnB,Column C,Column D There is a relation between Table1.ColumnB and Table2.ColumnB. I would like to group by Table1.ColumnA and display the data in hierachial view in gridgrouping control

Administrator [Syncfusion]
Replied On July 7, 2006 07:59 PM UTC

Hi Shankar, Try this code snippet to add the grouped columns in a grouping grid. Here is a code snippet. this.gridGroupingControl1.ShowGroupDropArea = true; GridTableDescriptor gdr = this.gridGroupingControl1.GetTableDescriptor("Table1"); gdr.GroupedColumns.Add("ColumnA",ListSortDirection.Ascending); Let me know if this helps. Best Regards, Haneef

Shankar Ramasubramanian
Replied On July 7, 2006 08:14 PM UTC

It didn''t work. runtime error. gdr is null DataSet newDs = new DataSet(); newDs.ReadXml("c:\\Shankar\\Group1.xml"); this.gridAttributes.ShowGroupDropArea = true; gridAttributes.DataSource = newDs.Tables[0]; GridTableDescriptor gdr = this.gridAttributes.GetTableDescriptor("Table1"); gdr.GroupedColumns.Add("Columna", ListSortDirection.Ascending);

Administrator [Syncfusion]
Replied On July 7, 2006 08:22 PM UTC

Hi Shankar, The reason is that you are misspelled the table name. In general, GetTableDescriptor method takes the table name as the argument. can you please double check your DataTable name?. Let me know if i am missing something. Try this code: GridTableDescriptor gdr = this.gridGroupingControl1.GetTableDescriptor(ds.Tables[0].TableName ); ///Or this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("ColumnA",ListSortDirection.Ascending); Best Regards, Haneef


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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