Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144006 | Apr 14,2019 07:02 AM UTC | Apr 15,2019 01:28 PM UTC | WinForms | 1 |
![]() |
Tags: SfDataGrid |
columnChooser = new Syncfusion.WinForms.DataGrid.Interactivity.ColumnChooser(sfDataGrid);
columnChooser.Load += columnChooser_Load;
columnChooser.Location = new Point(780, 120);
this.Controls.Add(columnChooser);
void columnChooser_Load(object sender, EventArgs e)
{
var value = this.sfDataGrid.Columns.ToList();
value.Remove(this.sfDataGrid.Columns[0]);
value.Remove(this.sfDataGrid.Columns[1]);
columnChooser.CheckedListBox.DataSource = value;
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.