Hi Erik,
Thank you for using Syncfusion products.
We have checked your requirement and your requirement can be achieved using “columns” property in sheets object. Please refer the below code example to achieve your requirement.
[JS]
<script>
var dataSource = [
{ "ItemName": "Casual Shoes", Quantity: 10, Price: "20", Amount: "200", Discount: "1", Profit: "10" },
//...
];
$(function () {
$("#Spreadsheet").ejSpreadsheet({
columnWidth: 100,
sheets: [{
dataSource: dataSource, fieldAsColumnHeader: true,
columns: [
{ field: 'A', text: Item Name },
{ field: 'C', text: 'Header2' },
{ field: 'E', text: 'Header3' },
]
}],
});
});
</script> |
For your convenience, we have prepared the sample based on your requirement. Please find the link below.
Regards,
Sangeetha M