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.
I have been struggling to format the cells in the expression field of my grouping grid, but the Format property doesnt seem to work. On further investigation, i found out that the cell value types for those columns is set to System.String. I am trying to set it back to typeof(decimal), but this doesnt seem to work. Can someone please post a workaround!
thanks
ADAdministrator Syncfusion Team March 17, 2005 12:38 AM UTC
Faraz,
the following ctor initializes a new expression field with a name, expression, and result type. The result type will then be picked up by style.CellValueType and your style.Format should work then.
public ExpressionFieldDescriptor(
string name,
string expression,
Type resultType
);
Parameters:
name - The name of the field.
expression - The expression. See the Grid User''s Guide for expression syntax and examples.
resultType - The result type.
Stefan
>I have been struggling to format the cells in the expression field of my grouping grid, but the Format property doesnt seem to work. On further investigation, i found out that the cell value types for those columns is set to System.String. I am trying to set it back to typeof(decimal), but this doesnt seem to work. Can someone please post a workaround!
>
>thanks
>