Hello,
I'm using a RadGridView to view a List<Products>. It contains a decimal "Price" field and a string "currency" field.
I've figured out how to specify a column FormatInfo and FormatString:
Now the question is: how can i do the same thing but cell by cell (not for the entire column), based on the Product fields values.
ex: one product that costs £23 and another 45€ and displaying those values..
Regards,
Rafael
I'm using a RadGridView to view a List<Products>. It contains a decimal "Price" field and a string "currency" field.
I've figured out how to specify a column FormatInfo and FormatString:
CultureInfo cultureInfo;
switch
(Product.Currency)
{
case
"EUR"
:
cultureInfo =
new
CultureInfo(
"fr-FR"
);
break
;
case
"GBP"
:
cultureInfo =
new
CultureInfo(
"en-GB"
);
break
;
default
:
cultureInfo =
new
CultureInfo(
"fr-FR"
);
break
;
}
radGridViewSupplierProducts.MasterGridViewTemplate.Columns[
"Price"
].FormatInfo = cultureInfo;
Now the question is: how can i do the same thing but cell by cell (not for the entire column), based on the Product fields values.
ex: one product that costs £23 and another 45€ and displaying those values..
Regards,
Rafael