delphi - LiveBindings, alter data at runtime -
im struggling flowing. i'm trying use livebindings own classes.
so wrote:
procedure tformsearchofferte.abssearchcreateadapter(sender: tobject; var abindsourceadapter: tbindsourceadapter); begin myoffertelist := getlistofoffertes(cbopenstaand.checked); abindsourceadapter := tlistbindsourceadapter<tofferte>.create(self, myoffertelist); end; procedure tformsearchofferte.cbopenstaandclick(sender: tobject); var abindsourceadapter: tbindsourceadapter; begin abindsourceadapter := tlistbindsourceadapter<tofferte>.create(self, nil); abssearchcreateadapter(self.parent, abindsourceadapter); strgrdlist.refresh; end;
my stringrid (strgrdlist) showing list of offertes. if uncheck combobox, reloads data. myoffertelist contains new data. stringgrid isn't. stringgrid connected abssearch.
my stringgrid still shows old data.
what missing?
call abssearch.refresh
after reloading data.
Comments
Post a Comment