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

Require specific columns in column chooser

Thread ID:





144006 Apr 14,2019 07:02 AM UTC Apr 15,2019 01:28 PM UTC WinForms 1
Tags: SfDataGrid
Asked On April 14, 2019 07:02 AM UTC

[1] Require specific columns in column chooser, in sfDataGrid some columns are fixed and some should be based on column chooser.

Jagadeesan Pichaimuthu [Syncfusion]
Replied On April 15, 2019 01:28 PM UTC

Hi Avinash, 

Thanks for using Syncfusion product. 

Your requirement can be achieved by removing the columns from CheckedListBox of the column chooser while loading. Please refer the below code snippet here two columns are removed from the list, so it does not display in column chooser. 

columnChooser = new Syncfusion.WinForms.DataGrid.Interactivity.ColumnChooser(sfDataGrid); 
columnChooser.Load += columnChooser_Load; 
columnChooser.Location = new Point(780, 120); 
void columnChooser_Load(object sender, EventArgs e) 
    var value = this.sfDataGrid.Columns.ToList(); 
    columnChooser.CheckedListBox.DataSource = value;  

Let us know whether this helps also if you need any further assistance on this. 



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