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

GridGrouping Control and Primary Key Column

Thread ID:





57691 Mar 8,2007 04:50 PM UTC Mar 9,2007 03:01 PM UTC ASP.NET Web Forms (Classic) 2
Tags: GridGroupingControl
Administrator [Syncfusion]
Asked On March 8, 2007 04:50 PM UTC


For a GridGrouping Control, to bind the data to the control, I have to specify the Primary Key otherwise the data doesn't get binded to the GGC.


In my application, the tablename is constructed in the code, so I don't know what is the field names to specify as the PrimaryKey Column.

Is there a way to specify the column number rather than the name of the table column as the Primary Key Column for the GGC?

If not, what alternatives do I have?



Gokul B [Syncfusion]
Replied On March 9, 2007 01:38 AM UTC

Hi Monica,

You can specify the column number rather than the name of the column name as the PrimaryKey using below code snippet.

//Gets the Name of the column from the specific Index
String str = this.GridGroupingControl1.TableDescriptor.Columns[0].Name;

Let us know if you have any other queries.

Thanks for using Syncfusion products.


Administrator [Syncfusion]
Replied On March 9, 2007 03:01 PM UTC

Hi Gokulkumar,

Thank you!!


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

This page will automatically be redirected to the 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