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

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -