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

Freeze Column to right of grid

Thread ID:

Created:

Updated:

Platform:

Replies:

141432 Dec 11,2018 02:54 PM UTC Dec 12,2018 08:43 AM UTC WinForms 1
loading
Tags: GridControl
Cormac Lennon
Asked On December 11, 2018 02:54 PM UTC

Hi,

I'm using the GridControl currently and investigating the Freeze Columns functionality, I was wondering if there was a way to pin the columns to the right hand side of the grid as opposed to the default of the left hand side?

- Cormac

Arulraj A [Syncfusion]
Replied On December 12, 2018 08:43 AM UTC

Hi Cormac, 

Thanks for using Syncfusion product. 

By default, GridControl does not have the support to freeze the columns form left. But, you could achieve your reported scenario by adjusting two grids location and size. We have implemented the FrozenColum and provided the RightFrozenColCount property. Please refer the following code example and the sample, 

Code example 
FrozenColumn frozenColumn = new FrozenColumn(); 
frozenColumn.RightFrozenColCount = 3; 
fr.WireFrozenRow(this.gridControl1); 
 
public void SetFrozenColumn() 
{ 
    this.grid.ResetGridBounds(); 
 
    this.grid.GridBounds = new Rectangle(this.grid.GridBounds.X, 
        this.grid.GridBounds.Y, 
        this.grid.GridBounds.Width - (RightFrozenColCount * this.grid.DefaultColWidth), 
        this.grid.GridBounds.Height); 
 
    this.FrozenColumnGrid.Location = new Point(this.grid.GridBounds.Width,0); 
 
    this.FrozenColumnGrid.Size = new Size((RightFrozenColCount * this.grid.DefaultColWidth), this.grid.ClientSize.Height); 
} 
 

Please let us know if you have any concerns. 

Arulraj A 


CONFIRMATION

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

;