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

Any event for grid rendering completed

I would like to auto resize columns of griddatacontrol after the grid is loaded and rendered completely. Is there any event for grid control rendering completed that I could subscribe to so that I can call ResizeColumnsToFit method? Or, is there a better way of resizing columns after the grid is rendered?


1 Reply

SJ Sathiyathanam Jeyakumar Syncfusion Team December 19, 2022 01:24 PM UTC

Hi Chaitanya Maddipatla,

We marked GridDataControl as a classic product and continued to improve and add features only to SfDataGrid. So, we suggest you use the SfDataGrid control. We have implemented a greater number of features in that SfDataGrid control compared to GridDataControl. SfDataGrid is a designed based on the WPF template-based architecture that provides support to customize the Grid easily and fully supports binding. When you want performance and customization features like styles and template features specific to WPF, you can use the SfDataGrid control. Comparatively, the performance of the SfDataGrid control is better than that of the GridDataControl.

Refer to the below UG links to get more information about column resizing in sfdatagrid.


Resizing Links : https://help.syncfusion.com/wpf/datagrid/columns#datagrid-column-resizing

https://help.syncfusion.com/wpf/datagrid/columns#identify-resizing-of-the-column-gets-completed

https://help.syncfusion.com/wpf/datagrid/columns#hidden-column-resizing


SfDataGrid Features : https://help.syncfusion.com/wpf/datagrid/overview

https://help.syncfusion.com/wpf/datagrid/data-manipulation

https://help.syncfusion.com/wpf/datagrid/conditional-styling

https://help.syncfusion.com/wpf/datagrid/drag-and-drop

https://help.syncfusion.com/wpf/datagrid/serialization-and-deserialization

https://help.syncfusion.com/wpf/datagrid/export-to-excel

https://help.syncfusion.com/wpf/datagrid/export-to-pdf

https://help.syncfusion.com/wpf/datagrid/printing

Regards

Sathiyathanam


Attachment: SfDataGridDemo_53fe005e.zip

Loader.
Up arrow icon