Użytkownik Mark Rajcok napisał:
> DaboDemo, dGrid, line 33:
>
> col = dabo.ui.dColumn(self, Name="Person", Order=20, DataField="name",
>                  DataType="string", Width=200, Caption="Celebrity Name",
>                  Sortable=True, Searchable=True, Editable=True, Expand=False)
>
> If I add to the constructor -- WordWrap=True -- the name column word wraps
> just fine.
> If I change the DataType in the dColumn constructor from "string" to
> "unicode", save changes, and run the demo again, it does not word wrap.  Any
> ideas?
>
>    

Hi,

There is little bug in dGrid I think.
You can try this:

class customGridColumn(dabo.ui.dColumn):
     def beforeInit(self):
             self.defaultRenderers["unicode"] = grid.wrapStringRendererClass
             self.defaultEditors["unicode"] = self.wrapStringEditorClass

Then, use this class in place of default dColumn class.

-- 
Regards
Jacek Kałucki

_______________________________________________
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]

Reply via email to