How to freeze a specific column

My data has five columns, text1, text2, text3, text4, text5. Now I want to freeze text3 to the far left. How can I achieve this? 

footerFrozenRowsCount and footerFrozenColumnsCount do not meet my needs.


6 Replies

AP Abinesh Palanisamy Syncfusion Team June 17, 2024 10:36 AM UTC

Hi wei deng,


In SfDataGrid, the frozenColumnsCount property sets the number of columns to be frozen on the left side of the grid. For example, if you have 5 columns and you want to freeze the first 3 columns, you can set frozenColumnsCount to 3. This will freeze the first three columns on the left side. For more detailed information, please refer to the user guide documentation link provided.


UG link -  Freeze Panes


If you have any misunderstandings or if your needs differ, please provide clear details about your use case. You can include additional information regarding the expected behavior. This extra detail will enable us to thoroughly address your request and provide an appropriate solution.


Regards,

Abinesh P



WD wei deng replied to Abinesh Palanisamy June 18, 2024 03:16 AM UTC

Thanks for your answer, but I don't want to freeze the first 3 columns, but only the third column (only one column). 

How can we achieve this effect?



AP Abinesh Palanisamy Syncfusion Team June 18, 2024 09:43 AM UTC

Hi wei deng,


Currently, SfDataGrid does not support freezing specific columns. This is a limitation on our end. We will update the user guide documentation to include this limitation.


Regards,

Abinesh P



AP Abinesh Palanisamy Syncfusion Team June 20, 2024 05:38 AM UTC

Hi wei deng,


We are glad to inform you that the updates for freeze panes in the User Guide have been made. Please refer to the User Guide link for more information.


UG link - Freeze Panes


Regards,

Abinesh P



WD wei deng replied to Abinesh Palanisamy June 21, 2024 09:26 AM UTC

this feature can be added? We really need this feature.



AP Abinesh Palanisamy Syncfusion Team June 21, 2024 01:03 PM UTC

Hi wei deng,


In SfDataGrid, the ability to freeze a specific column or row is a limitation on our end. Therefore, we are unable to consider this feature request. if you have any further queries. We are happy to help.


Regards,

Abinesh P


Loader.
Up arrow icon