Hi Daniel,
Based on this scenario, we suggest you to customize the corresponding formatted value based on current culture and assign to args.Cell.Value inside ExcelQueryCellInfoEvent handler to achieve this requirement. We have also prepared a sample for your reference, please download and refer the sample from the link below,
Please refer the codes below,
|
<GridEvents OnToolbarClick="ToolbarClickHandler" ExcelQueryCellInfoEvent="ExcelQueryCellInfoEvent" TValue="Order"></GridEvents>
public void ExcelQueryCellInfoEvent(ExcelQueryCellInfoEventArgs<Order> args)
{
CultureInfo currentCulture = new CultureInfo("fr-BE");
if (args.Column.Field == "Freight")
{
args.Cell.Value = args.Data.Freight.ToString("C2", currentCulture);
}
}
|
Please get back to us if you need further assistance.
Regards,
Renjith R