repead band from dataset object

Hi,

i need some help.

I load some data from my dataset to fastreport and i want to repeat a band for each poition in / row in the dataset object gebäudepos


I don't know why my data aren't repeating. I thought that would happen automatically in this implementation


      var ds = new DataSet();

      var angebot = context.Angebot.FirstOrDefault(gw => gw.Id == angebotId);

      var dskunde = ToDataTable(context.Kunde.Where(s => s.Id == angebot.KundeId).ToList(), "Kunde");

      ds.Tables.Add(dskunde);


      var dsangebot = ToDataTable(context.Angebot.Where(s => s.Id == angebot.Id).ToList(), "Angebot");

      ds.Tables.Add(dsangebot);


      var inventarpos = ToDataTable(context.InventarPosition.Where(s => s.AngebotId == angebot.Id).ToList(),

        "InventarPosition");

      ds.Tables.Add(inventarpos);


      // GebäudePosition

      var gebäudepos = ToDataTable(context.GebäudePosition.Where(s => s.AngebotId == angebot.Id).ToList(),

        "GebäudePosition");

      ds.Tables.Add(gebäudepos);

      ds.Relations.Add(

        "Angebot_GebäudePosition",

        ds.Tables["Angebot"].Columns["Id"],

        ds.Tables["GebäudePosition"].Columns["AngebotId"]

      );


Any ideas?

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.