public int RowIndex(Table table, Row row) { IList Rows = table.Rows as IList; return Rows.IndexOf(row); }