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 Column Itration

Thread ID:

Created:

Updated:

Platform:

Replies:

110730 Aug 22,2013 08:14 AM Oct 21,2013 08:44 AM Windows Forms 1
loading
Tags: GridControl
ash
Asked On August 22, 2013 08:14 AM

Hai  

Please anyone can give corresponding code of

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

for Syncfusion grid grouping control

thanks in advance

Praveena P [Syncfusion]
Replied On October 21, 2013 08:44 AM

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);

                    break;

                }

            }

 

 

Please let me know if you have any concerns.

 

Regards,

Praveena

 


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.

;