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

Show specific columns from a bounded datatable

Thread ID:





48895 Sep 6,2006 06:53 AM UTC Sep 6,2006 10:38 AM UTC WinForms 1
Tags: Grouping
Asked On September 6, 2006 06:53 AM UTC

How do a show specific columns from a datatable bound to a ggc?
For example, if a datatable (dt) has col1, col2, and col2

and the ggc is bound to the datatable (dt) like
ggc.DataSource = dt;

How do I show only col1 and col 3 in the grid?

Administrator [Syncfusion]
Replied On September 6, 2006 10:38 AM UTC

Hi James,

Use the VisibleColumns property of the GridTableDescriptor to show / hide / move the columns in the grid. Below is a code snippet

//For hide the "Col0" column

//For show the "Col0" column

//For move columns in a grid.



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