How to fit the columns which are inserted at runtime in Spreadsheet?

User can fit the column based on its content, which are inserted at runtime in SfSpreadsheet by calling AutofitColumnsmethod for the inserted range and setting the column width using SetColumnWidth function ofSpreadsheetGridand then refresh the UI using InvalidateCell method like below code example