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

GridTreeControl: Freeze a column

Thread ID:





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

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 03:41 PM UTC

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.

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