Posted 12 September 2022, 10:37 pm EST
Hi,
For this, you may need to change the column Info and call the refereshBindColumns method. Please refer to the following code snippet and let me know if you face any issues,
tableSheet.getDataView().setColumnInfos([
{ value: "Id", width: 80,width: 300 },
{ value: "CompanyName", width: 200, caption :"Company Name" },
{ value: "ContactName", width: 150, caption :"Contact" },
{ value: "ContactTitle", width: 200, caption :"Title" },
{ value: "Address", width: 200 },
{ value: "City", width: 150, caption :"City" },
{ value: "State", width: 100, caption :"State" },
{ value: "Region", width: 100, caption :"Region" }
]);
tableSheet.refreshBindColumns();
Regards,
Avinash