Hi,
I have a couple of grids that are NOT respecting several properties and
I wonder anybody understands the reason.
The Precision property is not displaying as I believe it should. My
code is for a column.
col1 = dabo.ui.dColumn(self, Name="itemCost", Order=30,
DataField="aropen_amount",
Precision = 2, DataType="decimal",
Caption="Amount",
Sortable=False, Searchable=False,
Editable=True)
I would expect the column to display
300.00
But the column displays
300.0000
The bizobj reports the field as Decimal('300.0000')
The second issue I'm having is centering a value in a column;
col = dabo.ui.dColumn(self, Order=30, DataField="pkid",
DataType="int", Caption="Enrollment #",
Sortable=False, Searchable=False,
Editable=False, Expand=False, HorizontalAlignment = 'Center'
No matter what I set the HorizontalAlignment (either left,right,or
center) the value is displayed as right aligned. I expected the value
to be centered if I asked for centered. I've also attempted to change
the DataType to 'str' without success. The bizobj field is an integer.
Thanks in advance for any help.
Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]