public int getPos(SupplyDetailsHelper sd_helper) { if (_collection.Contains(sd_helper)) { return(_collection.IndexOf(sd_helper) + 1); } return(-1); }
public void remove(SupplyDetailsHelper sd_helper) { if (_collection.Contains(sd_helper)) { _collection.Remove(sd_helper); _collection.All(x => { x.RowIndex = 1; return(true); }); updateLastRow(); } }
public void add(SupplyDetailsHelper sd_helper) { _collection.Add(sd_helper); updateLastRow(); }