report display one record! from List<T>
wahab
iran
hi
i am using List As Data Source but Report display one Record Only
using (ShopEntities db = new ShopEntities())
{
Report report = new Report();
report.Load("c:\\report1.frx");
List<CarGroup> List = db.CarGroup.ToList();
report.RegisterData(List, "Table");
report.GetDataSource("Table").Enabled = true;
report.Show();
}
why?
i am using List As Data Source but Report display one Record Only
using (ShopEntities db = new ShopEntities())
{
Report report = new Report();
report.Load("c:\\report1.frx");
List<CarGroup> List = db.CarGroup.ToList();
report.RegisterData(List, "Table");
report.GetDataSource("Table").Enabled = true;
report.Show();
}
why?
Comments
did you add the fields to a data-band?
Just tried it like this: And the report is created with 10 rows.
Best regards,
Keeper