Page 1 of 1

Runtime binding

Posted: Wed Feb 12, 2014 8:54 am
by a.marinelli
Hi!

I created a report with a simple dialog form with a datagrid and a button, and my objective is to populate the datagrid (by bindings) when I press the button.

So:

1) I created a datasource (ConnectOnStart=false) extremely simple (Select ID,Name From Items) without variables/parameters/where conditions (just to keep it simple)
2) I created the dialog with the two components and I set the bindings for the grid
3) In the button click event I inserted:

Code: Select all

this.OrigineDati1.Connect();
Nothing is shown inside the grid... What's wrong with what I am doing?

If I connect on start the datasource the grid shows records correctly, so I don't think it's a problem with bindings...

Re: Runtime binding

Posted: Wed Feb 12, 2014 12:47 pm
by Alex K.
Hello,

In this case please try to use the filter for Grid, instead a parameters for datasource.

Thank you.

Re: Runtime binding

Posted: Wed Feb 12, 2014 5:04 pm
by a.marinelli
ok thanks

Re: Runtime binding

Posted: Thu Feb 13, 2014 3:59 am
by Andrew
Hello,

Do not hesitate to contact us if you have additional questions.

Thank you.