dynamic reportviewer source RRS feed

  • Question

  • Is it possible to show in reportviewer table whole datatable with all the columns added dynamiclly?
    So, like I'm changind DataSet in program code and then reportviewer shows new dataset...
    Or may be I should also change rdcl file from program code?
    I am about local reports.
    I have found example, but it's not for visual studio 2008 ( it calls DynamicTable )

    I'll try to describe what I want: for example my report ( rdlc ) and dataset have datatable with 3 columns.

    ( I'm creating the dataset im code )

    But I want to create a dataset with 5 columns. Of cource I can do it, but how to show all then in reportviewer?

    How to add in reportviewer table 2 more columns?

    Saturday, November 27, 2010 8:21 PM

All replies

  • Hi, an idea that can be considered:

    If you have two or more datasets, you can create the rdlc with the maximum number of columns (dummy) with known names (e.g. col1, col2 ....coln) . Then within your code, you can update the dataset accordingly depending on your business requirement.

    Hope this helps.

    Regards 'Dotun

    Tuesday, November 30, 2010 2:08 PM