public override UITableViewCell GetCell(UITableView tableView, Foundation.NSIndexPath indexPath) { var cell = tableView.DequeueReusableCell (CellIdentifier) as CustomerViewTableCellLeads; //Customer customerObj = TableItems[indexPath.Row]; if (cell == null) { cell = new CustomerViewTableCellLeads(CellIdentifier); } if (tappedCellIndex != indexPath.Section) cellIndexCount = 0; tappedCellIndex = indexPath.Section; var result = TableItemsDictionary.Values; List<Customer> _list = new List<Customer> (); string tappedKey = _arraySectionTitle [indexPath.Section]; if (TableItemsDictionary.ContainsKey (tappedKey)) { _list = TableItemsDictionary.FirstOrDefault (x => x.Key == tappedKey).Value; //_list = TableItemsDictionary.FirstOrDefault (x => x.Key.Equals("K")); } if (_list != null && _list.Any ()) { // if (cellIndexCount < _list.Count) { cell.UpdateCell (_list [indexPath.Row]);//check // }; } return cell; }
public override UITableViewCell GetCell(UITableView tableView, Foundation.NSIndexPath indexPath) { var cell = tableView.DequeueReusableCell (CellIdentifier) as CustomerViewTableCellLeads; //Customer customerObj = TableItems[indexPath.Row]; if (cell == null) { cell = new CustomerViewTableCellLeads (CellIdentifier); } cell.UpdateCell(_searchList[indexPath.Row]); return cell; }