Runtime binding

Stimulsoft Reports.NET discussion
Post Reply
a.marinelli
Posts: 17
Joined: Wed Nov 14, 2012 1:39 pm

Runtime binding

Post 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...
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Runtime binding

Post by Alex K. »

Hello,

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

Thank you.
a.marinelli
Posts: 17
Joined: Wed Nov 14, 2012 1:39 pm

Re: Runtime binding

Post by a.marinelli »

ok thanks
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Runtime binding

Post by Andrew »

Hello,

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

Thank you.
Post Reply