On Oct 4, 2009, at 8:29 PM, Ricardo Aráoz wrote:
> I followed your advice and now everything is working.
> I don't understand something though. In the onHit code of the button
> that updates the grid (see below), every time I add a row to the
> DataSet
> I have to bind it again to the grid (issuing :
> self.Form.grdCondiciones.DataSet = self.Form.DataSet) or the grid will
> not show the new row. And if I add the row to
> self.Form.grdCondiciones.DataSet (and do no re assignment) the new row
> will replace the old one (so I always have one row).Why would that be?
Because datasets are tuples, and tuples are immutable. So when you
add a row to a dataset, you actually have a different object. If the
grid is bound to the original object, and you add a row to that
object, that creates a new object.
-- Ed Leafe
_______________________________________________
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/[email protected]