Delete DataSource

edited 10:46PM in FastReport .NET
good evening! I would like a help of colleagues .... created several datasources as a test, but would like to use only one of them, and would like to know how to delete the rest, because I'm not getting.
Can anybody help me ?

Thank you!

Valdiney (Brazil)

Comments

  • DesignsbyrayDesignsbyray Ohio, USA
    edited 10:46PM
    I think you can do something like this if you are calling the report from code:
    rpt.Dictionary.DataSources.FindByName( "records" ).Delete(); //rpt is your report object and records is the name of the datasource.
    or
    rpt.Dictionary.DataSources[0].Delete(); //0 being the index of the datasource.

    I hope this makes sense >
  • edited 10:46PM
    Correct, but delete without using code, is it possible?

Leave a Comment