ZForge.Controls.XPTable.Models.RowCollection.IndexOf C# (CSharp) Method

IndexOf() public method

Returns the index of the specified Row in the model
public IndexOf ( Row row ) : int
row Row The Row to look for
return int
        public int IndexOf(Row row)
        {
            for (int i=0; i<this.Count; i++)
            {
                if (this[i] == row)
                {
                    return i;
                }
            }

            return -1;
        }