8/24/2025 2:37:52 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Integer Format lost in Dynamic Grid
Posted: 13 Jun 08 6:26 AM
|
Hi,
I've got a Data Grid (in v7.2.2) which has its .SQL.Text property changed at runtime (the columns are not changed from their design-time state). A 'Standard' type column, which was specified with ftInteger formatting in the Columns collection, appears to lose this formatting after code in the CustomDrawCell event performs a currency conversion on the value. The conversions themselves are working fine, but the commas have disappeared!!
In other words:
- I have a grid which has columns & formats specified at design time. - At run time, the .SQL.Text is changed, and the grid is refreshed. - Values in a gvien column are multiplied for the purpose of currency conversion. - In the client, the formatting has now been lost; e.g. 10,000,000 shows as 10000000.
Is there a way to get the 'thousand seperators' back? I tried putting this in the CustomDrawCell event:
Column.FormatType = ftInteger
But that didn't have any effect!
Thanks,
Alec D |
|
|
|
Re: Integer Format lost in Dynamic Grid
Posted: 20 Jun 08 3:56 AM
|
I suppose a work-around for this would be to perform whatever currency conversion or other calculations in the SQL statement of the grid, and remove the code which alters the cell's display at runtime.
Different means to the same end, but a shame that CustomDrawCell seems to have this effect on column formatting. |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|