public virtual int IndexOf(Object modelObject) { for (int i = 0; i < this.GetItemCount(); i++) { if (this.GetModelObject(i).Equals(modelObject)) return i; } return -1; }