Beispiel #1
0
            /// <summary>
            /// Returns the index of a specified item in the collection
            /// </summary>
            /// <param name="dataGridViewRow">The DataGridViewRow to locate in the DataGridViewRowCollection</param>
            /// <returns>The index of value if it is a DataGridViewRow found in the DataGridViewRowCollection; otherwise, -1.</returns>
            public int IndexOf(IDataGridViewRow dataGridViewRow)
            {
                if (dataGridViewRow == null)
                {
                    throw new ArgumentNullException("dataGridViewRow");
                }

                DataGridViewRowVWG rowWin = (DataGridViewRowVWG)dataGridViewRow;

                return(_rows.IndexOf(rowWin.DataGridViewRow));
            }