> On Monday 23 April 2007 09:57, Paul McNett wrote: > > johnf wrote: > > > Next you have to populate the grid dataset; > > > > > > GridName.DataSet = myBizobj.getDataSet() > > > then you might want to refresh the grid > > > GridName.refresh() > > > > Depending on what you want to do with the grid, it's usually > better to > > bind it directly to the bizobj using grid.DataSource = > > mybizobj.DataSource. That way when the bizobj requeries, the > grid will > > notice automatically, among other reasons. > > > > So... please recommend that people use DataSource instead of > DataSet for > > grids. DataSet is really intended to allow displaying data > without a > > bizobj present. > But he is manually controlling the grid. At least that's what I > got from the > email. So I'm guessing he wants to control the data too. Maybe I > was > reading to much into the email! Anyway, no problem - I'll make > reference to > DataSource. > -- > John Fabiani
Thanks John and Paul, I guess I understand the diferent approaches. Glad to have learned the purpose of the DataSet prop :) Back to my original approach. Setting the Grid DataSource and the Column DataField properties in the designer! Miguel _______________________________________________________________________________________ Aqueca o seu Inverno com o credito pronto a usar! Saiba mais em http://www.iol.pt/correio/rodape.php?dst=0701181 _______________________________________________ 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]
