I am creating a calculated column in a datagrid. I am doing a division that can end up with a divide by zero. I tried implementing an if statement, but it generates an error. Can you possibly tell me how to handle the divide by zero error?
if (${data.EspCount} > 0)
${String.Format("{0:P2}", data.Count/data.EspCount)};
Also tried this
if (${data.EspCount} > 0){${String.Format("{0:P2}", data.Count/data.EspCount)};}