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. > Also, do I need to add columns for every field on the bizobj? No, just the fields you want to see in the grid. Paul -- http://paulmcnett.com _______________________________________________ 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]
