Possible 7.182 Bug with Jiwa Grid  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Possible 7.182 Bug with Jiwa Grid

Postby SBarnes » Fri Jul 07, 2017 8:16 pm

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
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Possible 7.182 Bug with Jiwa Grid  Topic is solved

Postby Mike.Sheen » Sun Jul 16, 2017 12:38 pm

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);
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron