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

GridGroupingControl Column Itration

Thread ID:





110730 Aug 22,2013 12:14 PM UTC Oct 21,2013 12:44 PM UTC WinForms 1
Tags: GridControl
Asked On August 22, 2013 12:14 PM UTC


Please anyone can give corresponding code of

foreach (DataGridViewColumn col in dgvTransaction.Columns)
                    if (col.HeaderText.ToUpper() == "PARTY CODE")
                        ColIndex = col.Index;

for Syncfusion grid grouping control

thanks in advance

Praveena P [Syncfusion]
Replied On October 21, 2013 12:44 PM UTC

Hi Ash,


Thank you for using Syncfusion products.


For GridGroupingControl  column iteration, make use of GridColumnDescriptor class  and get the grouping control columns  from TableDescriptor.

You can get the index of column using the “ IndexOf”.


Please refer the below code:


foreach (GridColumnDescriptor col in this.gridGroupingControl1.TableDescriptor.Columns)


                if (col.HeaderText.ToUpper() == "PARTY CODE")


                    ColIndex = this.gridGroupingControl1.TableDescriptor.Columns.IndexOf(col);






Please let me know if you have any concerns.






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