How to bind dynamically datasource to reportviewer on windows forms c#

后端 未结 3 1031
说谎
说谎 2020-12-18 15:35

I have created windows form that acts as report loader. I have created also two RDLC reports by report wizard and it automatically created dataset for those two reports. Now

3条回答
  •  伪装坚强ぢ
    2020-12-18 16:05

    To force Visual Studio to create automatically the bindingsource, you have to create the report (.rdlc) first. With a datasource linked, when you add the component (reportviewer) and link the component with the name of the report as shown in your image, once you select the report, it will automatically create a binding source with the name that you use when you created the design.

提交回复
热议问题