On May 14, 2012, at 4:26 PM, Adrian Klaver wrote:
> http://paul.dabodev.com/doc/api/dabodoc/dabo.ui.uiwx.dGrid.dColumn.html#Properties_DataType
>
> DataType
> Description of the data type for this column (str)
>
> The docs say it calls for a string and that is what I have been using
> with no ill effects, with the data type strings drawn from here:
>
> http://wiki.dabodev.com/DataTypes
The docs may be in need of updates. ;-) In any case, I believe that
"Decimal" will work, but not "decimal.Decimal".
During the debugging for this, I found several places where the
specified data types were being ignored, and every column being set to use its
stringRenderer class instead of something more specific. In most cases the
differences were minimal, except when it came to the Precision property.
Try this: run one of your apps with a grid, open a Command Window, get
a reference to the grid, and then run:
[col._rendererClass for col in gridref.Columns]
Before the recent changes, this would result in a list of all
wx.grid.GridCellStringRenderer instead of the correct renderers for the column
types.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]