Page 1 of 1

Possible 7.182 Bug with Jiwa Grid

PostPosted: Fri Jul 07, 2017 8:16 pm
by SBarnes
Hi Mike,

before in 7.175 with the Jiwa Grid

Code: Select all
jgLinesGrid.AddColumn("PercentDue", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaCurrencyCellType(), "Percent Due", 45, false, true, false,false,DecimalPlaces: 2);


produced a column with 2 decimal places.

Now in 7.182 the following code is needed to produce the same result as it would appear the decimal argument is being ignored somehow.

Code: Select all
jgLinesGrid.AddColumn("PercentDue", new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaCurrencyCellType(), "Percent Due", 45, false, true, false,false,DecimalPlaces: 2);
(jgLinesGrid.ActiveSheet.Columns["PercentDue"].CellType as FarPoint.Win.Spread.CellType.CurrencyCellType).DecimalPlaces = 2;


The form in question inherits from JiwaFinancials.Jiwa.JiwaApplication.Maintenance.UserInterface

Re: Possible 7.182 Bug with Jiwa Grid  Topic is solved

PostPosted: Sun Jul 16, 2017 12:38 pm
by Mike.Sheen
Thanks - we'll look into that.

As a work-around you can set the decimal places when you display the row:

Code: Select all
jgLinesGrid.GridDecimalPlaces("PercentDue", Row, 2, Row);