Page 1 of 1

update a datasource in runtime

Posted: Mon Mar 25, 2013 12:02 pm
by ramankh
Hi
I want to change my datatable defined in Dictionary for example now it has 2 column Id and Name. But in run time based on users selection i have to change the columns for example to Id, Address. How can I change the data source runtime.
Any help is appreciated

Re: update a datasource in runtime

Posted: Mon Mar 25, 2013 2:03 pm
by Alex K.
Hello,

You can use the Clear() and RegData() methods with the same name. But, most probably, you get the errors if the "Name" column uses in your report.

Thank you.

Re: update a datasource in runtime

Posted: Mon Mar 25, 2013 3:20 pm
by ramankh
Aleksey wrote:Hello,

You can use the Clear() and RegData() methods with the same name. But, most probably, you get the errors if the "Name" column uses in your report.

Thank you.
Thank you. But i found out that i should make my report in run time (do not define dataset in stimul designer manualy). But I can not set a Dataset to my report by code. the result is empty. can you please help me?
Im working in wpf.

Re: update a datasource in runtime

Posted: Tue Mar 26, 2013 5:49 am
by Alex K.
Hello,

Please check the sample project in attachment.

Thank you.

Re: update a datasource in runtime

Posted: Tue Mar 26, 2013 8:21 am
by ramankh
Aleksey wrote:Hello,

Please check the sample project in attachment.

Thank you.

Thank you. My pleasure to meet you here. ;)

Re: update a datasource in runtime

Posted: Tue Mar 26, 2013 9:16 am
by Alex K.
Hello,

Always glad to help you!
Let us know if you need any additional help.

Thank you.