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

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Can Piwik report referrer in real time? -