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