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.
Hi,
I use a databound grid. In my context, the number of columns to be displayed in the grid is unknown and variable. However all column should be formatted ###.dd except the first column who's format is 'd'.
How can I force the format I describe without using the DataBoundGridColumns? I changed the base style but it seems to be overriden by the default format for my data's datatype (double) which displays a lot of decimals.
ADAdministrator Syncfusion Team September 2, 2003 01:58 PM UTC
Try
this.grid.TableStyle.Format = "###.00";
this.grid.TableStyle.CellValueType = typeof(double);
Then all cells in the grid should use this format and cellvaluetype unless you explicitly set a GridBoundColumn.StyleInfo or handle events like PrepareViewStyleInfo or Model.QueryCellInfo to set particular styles.