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. Image for the cookie policy date

Freeze columns in grid

Hi,

I'm using GridDataBoundGrid.
I want to freeze 3 column on the grid.

I'm using the grid in the same way as in the VirtTreeGrid example.

How can I freeze these columns?

Thanks,
Ronnie

1 Reply

AD Administrator Syncfusion Team March 15, 2007 07:41 PM UTC

Hi Ronnie,

Thank you for being patience.

The columns in the GridDataBoundGrid can be freeze by using the following code snippet
>>>>>>>>>>>>>>>>>>>>
////Columns
// Sets the FrozenCount
this.gridDataBoundGrid1.Model.Cols.FrozenCount = 2;

//Freezes the selected columns (Moves them to the start of the grid and sets FrozenCount)
this.gridDataBoundGrid1.Model.Cols.FreezeSelection();

// Freezes a range of columns
this.gridDataBoundGrid1.Model.Cols.FreezeRange(2,5);
>>>>>>>>>>>>>>>>>>>>

Kindly let us know if you need any further assistance.
Have a nice day.

Best regards,
Madhan

Loader.
Live Chat Icon For mobile
Up arrow icon