Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
CultureInfo for each row
posted

Hi,

I need to display a decimal with currency format depending on a parameter selected in a dropdown for each row of the grid. So I could have selected USD in one row and eur on the next. I use a GridColumnSetting like this.

new GridColumnSetting{

Key="Amount",
Title = "Amount",
Format="{0:c}",
Type =System.Type.GetType("System.Double")
}

This will format the number as currency according to the current local CultureInfo. I need to change this depending on the value selected for each row in the grid.

Is this possible?

Thanks in advance.