i have made a TableDataSource which uses my custom TableCell with two Buttons in it.
List<ConductedActivitiesItem> _items = new List<ConductedActivitiesItem>();
foreach(var item in this._logicActivities.Steps)
{
_items.Add(new ConductedActivitiesItem(){ Date = "12-13", Text = item.Lines[0], Checked = null });
}
var ds = new ConductedActivitiesDataSource(_items);
var dg = new CSTableViewDelegate(null);
dg.SelectionChanged += this.Steps_SelectionChanged;
this.Pad_tbvMeasures.DataSource = null;
this.Pad_tbvMeasures.DataSource = ds;
this.Pad_tbvMeasures.Delegate = dg;
this.Pad_tbvMeasures.ReloadData();
the List has 4 Items:
a
b
c
d
The Table View Shows:
a
b
c
d
a
b
c
d
a
b
c
d
Does anyone of you have an idea why the List shows more Items than the DataSource has?
Check your NumberOfSections() and RowsInSetion() methods to verify that they are returning the correct values.