2 writes to owner
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
1922this.owner = owner; 2009this.owner = value;
80 references to owner
System.Windows.Forms (80)
winforms\Managed\System\WinForms\DataGridViewRow.cs (80)
1930if (this.owner == null) 1934if (this.owner.Index < this.owner.DataGridView.FirstDisplayedScrollingRowIndex) 1938int visibleRowIndex = this.owner.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, this.owner.Index); 1943rowRect.Y -= this.owner.Height; 1944rowRect.Height = this.owner.Height; 1947else if (this.owner.Index >= this.owner.DataGridView.FirstDisplayedScrollingRowIndex && 1948this.owner.Index < this.owner.DataGridView.FirstDisplayedScrollingRowIndex + this.owner.DataGridView.DisplayedRowCount(true /*includePartialRow*/)) 1950rowRect = this.owner.DataGridView.GetRowDisplayRectangle(this.owner.Index, false /*cutOverflow*/); 1951rowRect = this.owner.DataGridView.RectangleToScreen(rowRect); 1957int visibleRowIndex = this.owner.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, this.owner.Index); 1963if (this.owner.DataGridView.Rows[0].Visible == false) 1969if (!this.owner.DataGridView.ColumnHeadersVisible) 1976rowRect.Height = this.owner.Height; 1988if (this.owner == null) 1992return SR.GetString(SR.DataGridView_AccRowName, this.owner.Index.ToString(CultureInfo.CurrentCulture)); 2001return this.owner; 2005if (this.owner != null) 2027if (this.owner == null) 2031return this.owner.DataGridView.AccessibilityObject; 2064if (this.owner == null) 2070this.selectedCellsAccessibilityObject = new DataGridViewSelectedRowCellsAccessibleObject(this.owner); 2081if (this.owner == null) 2089if (this.owner.Selected) 2095for (int i = 0; i < this.owner.Cells.Count; i ++) 2097if (!this.owner.Cells[i].Selected) 2110Rectangle rowBounds = this.owner.DataGridView.GetRowDisplayRectangle(this.owner.Index, true /*cutOverflow*/); 2111if (!rowBounds.IntersectsWith(this.owner.DataGridView.ClientRectangle)) 2126if (this.owner == null) 2130if (this.owner.DataGridView.AllowUserToAddRows && this.owner.Index == this.owner.DataGridView.NewRowIndex) 2140int startIndex = this.owner.DataGridView.RowHeadersVisible ? 1 : 0; 2167if (this.owner == null) 2171if (index == 0 && this.owner.DataGridView.RowHeadersVisible) 2173return this.owner.HeaderCell.AccessibilityObject; 2178if (this.owner.DataGridView.RowHeadersVisible) 2183int columnIndex = this.owner.DataGridView.Columns.ActualDisplayIndexToColumnIndex(index, DataGridViewElementStates.Visible); 2184return this.owner.Cells[columnIndex].AccessibilityObject; 2191if (this.owner == null) 2195int result = this.owner.DataGridView.Columns.GetColumnCount(DataGridViewElementStates.Visible); 2197if (this.owner.DataGridView.RowHeadersVisible) 2215if (this.owner == null) 2219if (this.owner.DataGridView.Focused && this.owner.DataGridView.CurrentCell != null && this.owner.DataGridView.CurrentCell.RowIndex == this.owner.Index) 2221return this.owner.DataGridView.CurrentCell.AccessibilityObject; 2233if (this.owner == null) 2241if (this.owner.Index != this.owner.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible)) 2243int nextVisibleRow = this.owner.DataGridView.Rows.GetNextRow(this.owner.Index, DataGridViewElementStates.Visible); 2244int actualDisplayIndex = this.owner.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, nextVisibleRow); 2245if (this.owner.DataGridView.ColumnHeadersVisible) 2247return this.owner.DataGridView.AccessibilityObject.GetChild(actualDisplayIndex + 1); 2251return this.owner.DataGridView.AccessibilityObject.GetChild(actualDisplayIndex); 2260if (this.owner.Index != this.owner.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible)) 2262int previousVisibleRow = this.owner.DataGridView.Rows.GetPreviousRow(this.owner.Index, DataGridViewElementStates.Visible); 2263int actualDisplayIndex = this.owner.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, previousVisibleRow); 2264if (this.owner.DataGridView.ColumnHeadersVisible) 2266return this.owner.DataGridView.AccessibilityObject.GetChild(actualDisplayIndex + 1); 2270return this.owner.DataGridView.AccessibilityObject.GetChild(actualDisplayIndex); 2273else if (this.owner.DataGridView.ColumnHeadersVisible) 2311if (this.owner == null) 2316DataGridView dataGridView = this.owner.DataGridView; 2327if (this.owner.Cells.Count > 0) 2331dataGridView.CurrentCell = this.owner.Cells[dataGridView.CurrentCell.OwningColumn.Index]; // Do not change old selection 2338dataGridView.CurrentCell = this.owner.Cells[firstVisibleCell]; // Do not change old selection 2348this.owner.Selected = true; 2355this.owner.Selected = false;