On Apr 27, 2007, at 12:43 AM, Carl Karsten wrote:
> The DaboDemo grid also has a column of checkboxes. I see #1 in it,
> but not #2.
You should look at the code. The afterInit() for DaboDemo/samples/
dGrid.py begins with:
def afterInit(self):
col = dabo.ui.dColumn(self, Name="Geek", Order=10,
DataField="coder",
DataType="bool", Width=60, Caption="Geek?",
Sortable=False,
Searchable=False, Editable=True)
self.addColumn(col)
# col.CustomRenderers[1] = col.stringRendererClass
# col.CustomEditors[1] = col.stringEditorClass
col.HeaderFontBold = False
Note the two commented lines. They must be uncommented in your
version. They were originally put there to show that you can easily
customize the editors and renderers for grids, but so many people
were confused by it that I commented them out. That was back on March
20 (http://svn.dabodev.com/trac/dabodemo/changeset/503).
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]