OT: Reportviewer duplicating rows?

OT: Reportviewer duplicating rows?

Old forum URL: forums.lhotka.net/forums/t/4984.aspx


ajj3085 posted on Tuesday, June 17, 2008

Hi,

I'm really confused.  I have a ReadOnlyListBase containing ReadOnlyBase objects, which are used as the data source for a local report.  The list contains 283 items.  For some reason though, when the report displays, it repeats the first item for pages.. the exact same row.

I can't figure out why.. any ideas?  I'm using Csla 3.0.4.

Thanks
Andy

ajj3085 replied on Tuesday, June 17, 2008

Hmm...it's actually showing mostly one row, and another row sprinkled in a few times. So it mostly displays the top row, and then randomly displays another row (the last one?) thrown in for good measure.

ajj3085 replied on Tuesday, June 17, 2008

Ugh... I think I found the problem, in case this affects anyone else.

I'm using Linq to get the data, and I had the IsPrimaryKey set on a column which was not the primary key, and had only two values.  So Linq was giving me the first row that differed by that key for every other row with the same value.  Opps.

Copyright (c) Marimer LLC