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.

How to anchor a column in a grid?

Thread ID:

Created:

Updated:

Platform:

Replies:

50399 Oct 11,2006 04:15 AM Oct 16,2006 05:50 AM Windows Forms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 11, 2006 04:15 AM

Hi,

I have a Grid with x number of columns.When the user scrolls across the grid, I want the position of the first column displayed to be fixed/anchored and the remaining columns to scroll.The idea being that the first column is always visible to the user.
Is there any way of doing this?

Thanks in advance.

Maire

Administrator [Syncfusion]
Replied On October 11, 2006 04:52 AM

Hi Maire,

You can freeze rows or columns by using FrozenCount property. The grid.Model.Cols.FrozenCount and the grid.Model.Rows.FrozenCount to freeze columns and rows respectivley in Grid. Kindly refer to the below KB article for details.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=240

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On October 13, 2006 04:24 AM

Thanks for your reply Haneef, but I am using the GridDataBoundGrid Control which doesnt seem to support this property.
Is there another workaround for this?

Many thanks.
Maire

>Hi Maire,

You can freeze rows or columns by using FrozenCount property. The grid.Model.Cols.FrozenCount and the grid.Model.Rows.FrozenCount to freeze columns and rows respectivley in Grid. Kindly refer to the below KB article for details.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=240

Best'>http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=240''>http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=240

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On October 14, 2006 06:35 AM

Hi Maire,
Please try this code snippet:

this.gridDataBoundGrid1.Model.Cols.FrozenCount=2;
this.gridDataBoundGrid1.Model.Rows.FrozenCount=5;

Here is a small sample:
GDBG_FrozenColumns.zip
Best Regards,
Jeba.


Administrator [Syncfusion]
Replied On October 16, 2006 05:50 AM

Hi Jeba,

This worked perfectly .
many thanks
Maire

>Hi Maire,
Please try this code snippet:

this.gridDataBoundGrid1.Model.Cols.FrozenCount=2;
this.gridDataBoundGrid1.Model.Rows.FrozenCount=5;

Here is a small sample:
GDBG_FrozenColumns.zip
Best Regards,
Jeba.


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.

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.

;