94 references to OwningRow
System.Windows.Forms (94)
winforms\Managed\System\WinForms\DataGridViewBand.cs (3)
404
if (value.
OwningRow
!= null)
406
value.
OwningRow
.HeaderCell = null;
408
Debug.Assert(value.
OwningRow
== null);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
1131
if (dataGridViewCell.OwningColumn != null && dataGridViewCell.
OwningRow
!= null)
winforms\Managed\System\WinForms\DataGridViewCell.cs (35)
1222
else if (this.
OwningRow
!= null)
1226
dgvabsEffective = this.
OwningRow
.AdjustRowHeaderBorderStyle(this.DataGridView.AdvancedRowHeadersBorderStyle,
1232
cellState = this.
OwningRow
.GetState(rowIndex) | this.State;
1237
Debug.Assert(this.
OwningRow
== null);
3121
int width = GetPreferredWidth(rowIndex, this.
OwningRow
.Height);
3124
if (this.OwningColumn.Width < width || this.
OwningRow
.Height < height)
3137
else if ((rowIndex != -1 && this.
OwningRow
!= null && this.DataGridView.RowHeadersVisible && this.DataGridView.RowHeadersWidth > 0 && this.OwningColumn == null) ||
4637
if (this.DataGridView == null || this.
OwningRow
== null || this.
OwningRow
.DataGridView == null)
4650
if (this.
OwningRow
.Index == this.DataGridView.CurrentCellAddress.Y)
4811
string name = SR.GetString(SR.DataGridView_AccDataGridViewCellName, this.owner.OwningColumn.HeaderText, this.owner.
OwningRow
.Index);
4875
if (this.owner.
OwningRow
== null)
4881
return this.owner.
OwningRow
.AccessibilityObject;
4922
if (this.owner.OwningColumn != null && this.owner.
OwningRow
!= null)
4924
cellBounds = this.owner.DataGridView.GetCellDisplayRectangle(this.owner.OwningColumn.Index, this.owner.
OwningRow
.Index, false /*cutOverflow*/);
4926
else if (this.owner.
OwningRow
!= null)
4928
cellBounds = this.owner.DataGridView.GetCellDisplayRectangle(-1, this.owner.
OwningRow
.Index, false /*cutOverflow*/);
5000
if (this.owner.
OwningRow
== null)
5016
this.owner.
OwningRow
.Index,
5241
if (this.owner.OwningColumn == null || this.owner.
OwningRow
== null)
5271
if (this.owner.
OwningRow
.Index == this.owner.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible))
5285
int previousVisibleRow = this.owner.DataGridView.Rows.GetPreviousRow(this.owner.
OwningRow
.Index, DataGridViewElementStates.Visible);
5289
if (this.owner.
OwningRow
.Index == this.owner.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible))
5295
int nextVisibleRow = this.owner.DataGridView.Rows.GetNextRow(this.owner.
OwningRow
.Index, DataGridViewElementStates.Visible);
5310
AccessibleObject previousRow = this.Owner.
OwningRow
.AccessibilityObject.Navigate(AccessibleNavigation.Previous);
5325
return this.owner.
OwningRow
.AccessibilityObject.GetChild(0);
5338
return this.owner.
OwningRow
.Cells[previousVisibleColumnIndex].AccessibilityObject;
5352
AccessibleObject nextRow = this.Owner.
OwningRow
.AccessibilityObject.Navigate(AccessibleNavigation.Next);
5380
return this.owner.
OwningRow
.Cells[nextVisibleColumnIndex].AccessibilityObject;
5493
if (this.owner.OwningColumn == null || this.owner.
OwningRow
== null)
5501
return this.owner.
OwningRow
.AccessibilityObject;
5593
if (this.owner.DataGridView.RowHeadersVisible && this.owner.
OwningRow
.HasHeaderCell)
5595
return new UnsafeNativeMethods.IRawElementProviderSimple[1] { this.owner.
OwningRow
.HeaderCell.AccessibilityObject };
5617
return this.owner.
OwningRow
!= null ? this.owner.
OwningRow
.Index : -1;
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (4)
178
if (dataGridViewCell.
OwningRow
!= null)
272
if (dataGridViewCell.
OwningRow
!= null)
316
if (dataGridViewCell.
OwningRow
!= null)
391
if (dataGridViewCell.
OwningRow
!= null)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1888
if (!dataGridViewCell.ReadOnly && dataGridViewCell.OwningColumn != null && dataGridViewCell.
OwningRow
!= null)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (17)
92
if (this.
OwningRow
!= null)
95
return this.DataGridView.RowHeadersVisible && this.
OwningRow
.Displayed;
142
if (this.
OwningRow
!= null)
145
return this.
OwningRow
.Frozen;
198
if (this.
OwningRow
!= null)
201
return (this.
OwningRow
.Resizable == DataGridViewTriState.True) || (this.DataGridView != null && this.DataGridView.RowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing);
262
if (this.
OwningRow
!= null)
265
return this.
OwningRow
.Visible &&
330
if (this.
OwningRow
!= null)
338
if (this.DataGridView != null && this.DataGridView.Rows.SharedRow(rowIndex) != this.
OwningRow
)
342
state |= (this.
OwningRow
.GetState(rowIndex) & DataGridViewElementStates.Frozen);
343
if (this.
OwningRow
.GetResizable(rowIndex) == DataGridViewTriState.True || (this.DataGridView != null && this.DataGridView.RowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing))
347
if (this.
OwningRow
.GetVisible(rowIndex) && (this.DataGridView == null || this.DataGridView.RowHeadersVisible))
350
if (this.
OwningRow
.GetDisplayed(rowIndex))
456
else if (this.
OwningRow
!= null)
463
if (this.DataGridView.Rows.SharedRow(rowIndex) != this.
OwningRow
)
467
return new Size(this.DataGridView.RowHeadersWidth, this.
OwningRow
.GetHeight(rowIndex));
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
1049
dataGridViewCell.OwningColumn != null && dataGridViewCell.
OwningRow
!= null)
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1202
if (dataGridViewCell.OwningColumn != null && dataGridViewCell.
OwningRow
!= null)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (7)
389
Debug.Assert(dataGridViewCell.
OwningRow
== dataGridViewRow);
524
Debug.Assert(dataGridViewCell.
OwningRow
== rowTemplate);
589
Debug.Assert(dataGridViewCell.
OwningRow
== dataGridViewRow);
900
Debug.Assert(dataGridViewCell.
OwningRow
== dataGridViewRow);
1567
Debug.Assert(dataGridViewCell.
OwningRow
== rowTemplate);
1654
Debug.Assert(dataGridViewCell.
OwningRow
== dataGridViewRow);
1928
Debug.Assert(dataGridViewCell.
OwningRow
== dataGridViewRow);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (24)
311
if (this.DataGridView == null || this.
OwningRow
== null)
408
if (this.
OwningRow
== null)
414
return this.
OwningRow
.GetErrorText(rowIndex);
658
dgvabsEffective = this.
OwningRow
.AdjustRowHeaderBorderStyle(this.DataGridView.AdvancedRowHeadersBorderStyle,
1212
if (this.Owner.
OwningRow
== null)
1271
if (this.Owner.
OwningRow
== null)
1277
return this.Owner.
OwningRow
.AccessibilityObject;
1308
if (this.Owner.
OwningRow
!= null && this.Owner.
OwningRow
.Selected)
1334
this.Owner.
OwningRow
!= null)
1336
this.Owner.
OwningRow
.Selected = true;
1348
if (this.Owner.
OwningRow
!= null && this.Owner.DataGridView.Columns.GetColumnCount(DataGridViewElementStates.Visible) > 0)
1358
if (this.Owner.
OwningRow
== null)
1364
if (this.Owner.
OwningRow
.Index == this.Owner.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible))
1370
int nextVisibleRow = this.Owner.DataGridView.Rows.GetNextRow(this.Owner.
OwningRow
.Index, DataGridViewElementStates.Visible);
1387
if (this.Owner.
OwningRow
== null)
1393
if (this.Owner.
OwningRow
.Index == this.Owner.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible))
1408
int previousVisibleRow = this.Owner.DataGridView.Rows.GetPreviousRow(this.Owner.
OwningRow
.Index, DataGridViewElementStates.Visible);
1446
if (dataGridViewCell.
OwningRow
!= null &&
1452
dataGridViewCell.
OwningRow
.Selected = true;
1456
dataGridViewCell.
OwningRow
.Selected = false;
1465
if (this.Owner.
OwningRow
== null)
1473
return this.Owner.
OwningRow
.AccessibilityObject;
1478
return this.Owner.
OwningRow
.AccessibilityObject.GetChild(1);