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

[Solved] Apply DataFormatString at the cell level?

1 Answer 127 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Zack
Top achievements
Rank 1
Zack asked on 18 Dec 2009, 11:43 AM
Hi,

Are we able to apply a format string to the value of a single cell?  I know we can apply a format string for a column, but this does not work in my case.

My column contains numbers in different currencies, I know what the currency is based on the value of another column.  So my column needs to look like this;

£12.34
$45.00
£34.98

I also still need to be able to apply aggregates and totals to these columns.

I can use an IValueConverter - but would prefer to be able to apply a format string per cell.

Thanks for any help

Zack

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 18 Dec 2009, 11:58 AM
Hi Zack,

You cannot apply a string format to a specific cell only. Your only option will be to bind the column to the entire business object with an IValueConverter that will read the needed properties and return the correct string.

Kind regards,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Zack
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or