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.

GridTreeControl: Freeze a column

Thread ID:





102405 Jan 27,2012 05:28 PM Feb 8,2012 10:41 AM WPF 1
Tags: GridControl
anand rengarajan
Asked On January 27, 2012 05:28 PM

Can I freeze columns (to the left or right), just like how the first column in the tree is frozen in the left by default..

Clay Burch [Syncfusion]
Replied On February 8, 2012 10:41 AM

You can freeze columns on the left and right in a GridTreeControl by accessing properties in the gridTreeControl.Model object. Here are some code snippets.

public MainWindow()


this.gridTreeControl1.ModelLoaded += (s, e) =>
//set up frozen columns on the left
// value of 1 is rowheader (may be hidden)
// value of 2 is expand col (default setting)
//value of 3 will freeze first col to right of expander column
this.gridTreeControl1.Model.FrozenColumns = 3;

//set up frozen columns on the right
this.gridTreeControl1.Model.FooterColumns = 1; //freezes one column on right

Attached is a sample.



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.