Last post May 27, 2006 09:57 PM by Russ Helfand
May 04, 2006 07:20 AM|Ari@n|LINK
When you don't specify the RepeatColumns property of the DataList-control. The following error occurs:
Row156: int nRow = iItem / dataList.RepeatColumns;
in the class: App_Code\Adapters\DataListAdapter.cs
When you set the RepeatColumns to 1 everything works fine.
May 04, 2006 09:23 AM|Russ Helfand|LINK
Nice catch! I'll add it to my to-do list for the next rev.
May 06, 2006 01:43 PM|jlerman|LINK
May 27, 2006 02:54 AM|jminond|LINK
i dont think setting to 1 is the proper solution... becuase thats not really the "real" value... i think it's more appropriate to check if repepat column = 0... then not do any of that work in the first place.
May 27, 2006 05:09 AM|Russ Helfand|LINK
May 27, 2006 10:52 AM|jminond|LINK
Cool, I think the solution I posted in the oher thread for having a bool to say if you have data....
i imagine the same type of error could potentially ahppen with rows if someone where to modify the code a little, i dont know... in any case...
if you have no data... you can hit a nodata template, or something like that.
May 27, 2006 09:57 PM|Russ Helfand|LINK