I just need to set a float custom field from the normal 2 decimals to something else, say 6.
Using this old thread (in VB) as an example I've got the below code in C# but I just can't work out the syntax to set .DecimalPlaces = 6. viewtopic.php?f=26&t=497
Bloody driving me crazy!
- Code: Select all
public void FormatCell(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Col, int Row, JiwaFinancials.Jiwa.JiwaApplication.IJiwaCustomFieldValues HostObject, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
{
if (CustomField.PluginCustomField.Name == "MyFloat")
{
// Set decimal places to 6
if (GridObject.ActiveSheet.Cells[Row, Col].CellType == null)
{
GridObject.ActiveSheet.Cells[Row, Col].CellType = new FarPoint.Win.Spread.CellType.NumberCellType();
}
need to set decimal places here
}
}



