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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Equivalent of GridBoundColumns?

Thread ID:





9597 Dec 30,2003 08:47 PM UTC Dec 31,2003 05:17 PM UTC WinForms 1
Tags: Grouping
Sean Greer
Asked On December 30, 2003 08:47 PM UTC

I want to restrict the set of columns that is displayed and customize the column header text. With the GDBG I would add GridBoundColumns to the collection prior to setting the DataSource and all was well. How do I achieve this with the GridGroupingControl?

Administrator [Syncfusion]
Replied On December 31, 2003 05:17 PM UTC

It is the TableDescriptor.Columns collection. Here is how you can initialize it: GridColumnDescriptor gridColumnDescriptor1 = new GridColumnDescriptor(); GridColumnDescriptor gridColumnDescriptor2 = new GridColumnDescriptor(); GridColumnDescriptor gridColumnDescriptor3 = new GridColumnDescriptor(); GridColumnDescriptor gridColumnDescriptor4 = new GridColumnDescriptor(); GridColumnDescriptor gridColumnDescriptor5 = new GridColumnDescriptor(); GridColumnDescriptor gridColumnDescriptor6 = new GridColumnDescriptor(); GridColumnDescriptor gridColumnDescriptor7 = new GridColumnDescriptor(); gridColumnDescriptor1.MappingName = "CustomerID"; gridColumnDescriptor2.MappingName = "CompanyName"; gridColumnDescriptor3.MappingName = "ContactName"; gridColumnDescriptor4.MappingName = "ContactTitle"; gridColumnDescriptor5.MappingName = "Country"; gridColumnDescriptor6.MappingName = "Phone"; gridColumnDescriptor7.MappingName = "Fax"; this.gridGroupingControl1.TableDescriptor.Columns.AddRange(new GridColumnDescriptor[] { gridColumnDescriptor1, gridColumnDescriptor2, gridColumnDescriptor3, gridColumnDescriptor4, gridColumnDescriptor5, gridColumnDescriptor6, gridColumnDescriptor7}); Stefan


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

Live Chat Icon For mobile
Live Chat Icon