On Jan 7, 2008 2:48 PM, Paul McNett <[EMAIL PROTECTED]> wrote:
> Nate Lowrie wrote:
>
> > Ok, so that worked and I now have my bizobject.  It is working without
> > problems.  The next issue that I am having is how to bind the grid
> > datasource/field to the bizobject.  Do I just bind the grid datasource
> > to the bizobj reference and ignore the field and set the fields on the
> > columns?  This is what I have so far, but it appears to go into an
> > infinite loop...
> >
> >               self.custGrid = dabo.ui.dGrid(self, 
> > DataSource=self.custBizobj,
> > AlternateRowColoring=True, SelectionMode="Row", Editable=False,
> > MovableColumns=True)
> >
> >               self.custGrid.addColumn(self, Name="Last Name",
> > DataField="LastName", DataType="string", Width=40, Caption="Customer
> > Last Name", Sortable=True, Searchable=True, Editable=True,
> > Expand=False)
> >
> >               self.custGrid.addColumn(self, Name="First Name",
> > DataField="FirstName", DataType="string", Width=40, Caption="Customer
> > First Name", Sortable=True, Searchable=True, Editable=True,
> > Expand=False)
> >
> >               self.custGrid.addColumn(self, Name="Address", 
> > DataField="Address",
> > DataType="string",Caption="Customer Address", Sortable=True,
> > Searchable=True, Editable=True, Expand=True)
>
>
> What you have looks correct. Try just one column at first, only setting
> Caption and DataField. Keep adding properties and let us know which one
> causes the infinite loop.

Notice the self reference in all the addColumn functions....That did it.

Another thing to note: Name is not the displayed column name and thus
cannot contain spaces.  Caption is the displayed name.

Nate L.


_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to