locked
report rdlc from datagridview without any data source. RRS feed

  • Question

  • hello community,

    Language: visual studio 2008, vb.net

    i have a datagridview that i fill with loops with numbers & names & i want to report that in report viewer (rdlc) can i do that?
    i tried to search for this on google & it seems like it doesn't exist.

    any sample, link, book is appreciated!

    Thank you
    Share your knowledge it's one way to achieve immortality.. http://www.rabihtawil.com
    Friday, October 23, 2009 6:58 PM

All replies

  • HI Rabih,

    For displaying Report we need Data Source which can be supplied in form of DataSet, Objects or directly from database.
    So try to fill DataSet from GridView(Exactly reverse of how we bind DataSet to GridView)

    [OR]

    Get all the columns or row data in form of collection and pass then as DataSource to Report (rdlc).

    Hope this will helps you

    --=Raja Sekhar K

    Monday, October 26, 2009 7:27 AM
  • Hi raja,

    Actually that was the point of my question, if i have a datagridview that i filled without datasource & there is no database involved what so ever & i want to take the data from this grid dirctly & post it to rdlc report, can it be done? if yes how?

    you explained in your reply a traditional way of using report viewer which is not my intention, thank u.

    Best regards.
    Share your knowledge it's one way to achieve immortality.. http://www.rabihtawil.com
    Monday, October 26, 2009 7:33 AM