The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
DRDhivya Rajendran Syncfusion Team August 8, 2019 12:30 PM UTC
Hi Daniel,
Thanks for contacting Syncfusion support.
We have validated the provided information and code example. In your application, you are using autoFitColumns method in dataBound event by default while using autofitColumn then it calculate width for the columns based on the grid content so when use command column there is no header and content(when have no data) so it took min width(it need extra width) for that command column.
We suggest you to apply the static width for the command column and perform autofit other than command column when grid have no data. Please refer the below code example for more information.
DRDhivya Rajendran Syncfusion Team August 9, 2019 05:25 AM UTC
Hi Daniel,
Sorry for the inconvenience caused.
We suggest you to use currentViewData or getCurrentViewRecords() method to find whether the grid has data or not. Please get back to us if you need further assistance on this.
Regards,
R.Dhivya
Need More Help?
Get personalized assistance from our support team.