main logo
Subject: [dabo-users] (no subject)
Author:
Posted: 2007/06/29 15:15:00
 
View Entire Thread
New Search


I want to add a panel class as a grid column. Is this feasible?

A)I am trying code like this

class GridWtColumn(dGrid.dColumn, RAConvMainPanel):
pass

class DistGrid(dabo.ui.dPanel):
def afterInit(self):
self.Sizer = dabo.ui.dSizer("v")

lineGrd =
dabo.ui.dGrid(self,RegID="distgridID",AlternateRowColoring
=True,ColumnCount=
5,SelectionMode = "Row",Editable =
False,MovableColumns = False,MultipleSelection = False)

lineGrd.DataSource = ""

wtColumn=dGrid.dColumn(self,Name="wtCol",
DataType="int", Width=100, Caption="Wt",
Sortable=False, Searchable=False,
Editable=True, Expand=True)

lineGrd.addColumn(col=wtColumn)

B)if this is do-able, I am having problems resolving dColumn. How should I
be declaring the imports?

Thanks,
Larry Long

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.9.12/878 - Release Date: 06/28/2007
5:57 PM





 
©2007
<-- Prior Message New Search Next Message -->