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

c# - How do I debug "System.DllNotFoundException: The specified procedure could not be found"? -

javascript - Can Piwik report referrer in real time? -

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