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.
In our project, the columns in data grid is more than 100, the default padding in the cell of data grid is too long, see below image how can we set up this value manually, such as '2px'.
BSBalaji Sekar Syncfusion Team July 15, 2020 09:27 AM UTC
Hi Zhao,
Greetings from the Syncfusion support.
In dataBound event we reduced the cell spacing in the Grid row cell using the Grid's autoFitColumns method. In the example below, we defined the autofit property to Grid column , that will render the column width based on the content of the grid column cell, and we changed the default cell spacing (padding in left and right of cell) used by the CSS style property. For more details please refer to the example and sample code below.