This is a migrated thread and some comments may be shown as answers.

RadGrid Summary Row FormatString

3 Answers 273 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 2
Sam asked on 05 Oct 2010, 02:53 AM
Hi Guys,

The column format is set as {0:c},

From the designer, I add a summary row, and then a GridViewSummaryItem. When I set the FormatString property of this summary item for that particular column as {0,c}, I am getting an exception.

The actual DB column is a MySQL decimal (15,2) type column.

I can get around this by using the ViewCellFormattingEvent programmatically. But just wanted to know whether I am doing something wrong, or is this a bug.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 05 Oct 2010, 06:23 AM
Hello Sam,

In the format for the SummaryItem do you mean {0:c} like you said in the first line or {0,c} which throws an exception (Input string was not in a correct format.)?

If you use it like {0:c} it will work from the designer also.

Best Regards,
Emanuel Varga
0
Sam
Top achievements
Rank 2
answered on 05 Oct 2010, 06:27 AM
jesus i need a break !
0
Emanuel Varga
Top achievements
Rank 1
answered on 05 Oct 2010, 06:30 AM
Hello Sam,

Don't worry it happens, glad to help,

Best Regards,
Emanuel Varga
Tags
GridView
Asked by
Sam
Top achievements
Rank 2
Answers by
Emanuel Varga
Top achievements
Rank 1
Sam
Top achievements
Rank 2
Share this question
or