Hi Team ,
I am trying to set up group by experssion from code behind , When I set Count as Aggregate fucntion on bound column I am getting below error
Input string was not in a correct format.Couldn't store <Value> in Column. Expected type is Decimal.
Below is the Code I am using , can you please suggest how to proceed further
GridGroupByExpression expression = new GridGroupByExpression();
GridGroupByField gridGroupByField = new GridGroupByField();
gridGroupByField.FieldName = "<BoundColumnName>";
gridGroupByField.HeaderText = "<HeaderText> ";
gridGroupByField.HeaderValueSeparator = "";
gridGroupByField.FormatString = "<strong>{0:0.00}</strong>";
gridGroupByField.Aggregate = GridAggregateFunction.Count;
expression.SelectFields.Add(gridGroupByField);
Thanks in advance .
I am trying to set up group by experssion from code behind , When I set Count as Aggregate fucntion on bound column I am getting below error
Input string was not in a correct format.Couldn't store <Value> in Column. Expected type is Decimal.
Below is the Code I am using , can you please suggest how to proceed further
GridGroupByExpression expression = new GridGroupByExpression();
GridGroupByField gridGroupByField = new GridGroupByField();
gridGroupByField.FieldName = "<BoundColumnName>";
gridGroupByField.HeaderText = "<HeaderText> ";
gridGroupByField.HeaderValueSeparator = "";
gridGroupByField.FormatString = "<strong>{0:0.00}</strong>";
gridGroupByField.Aggregate = GridAggregateFunction.Count;
expression.SelectFields.Add(gridGroupByField);
Thanks in advance .