2 writes to dgTable
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridRow.cs (2)
84
this.
dgTable
= dgTable;
142
dgTable
= value;
118 references to dgTable
System.Windows.Forms (118)
winforms\Managed\System\WinForms\DataGridAddNewRow.cs (2)
91
if (this.
dgTable
.IsDefault)
94
gridStyle = this.
dgTable
.GridLineStyle;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (72)
138
return this.
dgTable
.FocusedRelation;
141
dgTable
.FocusedRelation = value;
150
Debug.Assert(this.
dgTable
.DataGrid.AllowNavigation, "how can the user collapse the relations if the grid does not allow navigation?");
165
Debug.Assert(this.
dgTable
.DataGrid.AllowNavigation, "how can the user expand the relations if the grid does not allow navigation?");
168
&& this.
dgTable
!= null
169
&& this.
dgTable
.RelationsList.Count > 0) {
229
Rectangle ret = this.
dgTable
.RelationshipRect;
230
ret.Y = base.Height - this.
dgTable
.BorderWidth;
270
bool rowHeadersVisible = this.
dgTable
.IsDefault ? this.DataGrid.RowHeadersVisible : this.
dgTable
.RowHeadersVisible;
272
int rowHeaderWidth = this.
dgTable
.IsDefault ? this.DataGrid.RowHeaderWidth : this.
dgTable
.RowHeaderWidth;
286
if (
dgTable
== null ||
dgTable
.DataGrid == null || !
dgTable
.DataGrid.AllowNavigation)
301
bool rowHeadersVisible = this.
dgTable
.IsDefault ? this.DataGrid.RowHeadersVisible : this.
dgTable
.RowHeadersVisible;
304
if (this.
dgTable
.RelationsList.Count == 0) {
329
DataGrid.NavigateTo(((string)this.
dgTable
.RelationsList[r]), this, true);
360
relRect.X += rowHeaders.X + this.
dgTable
.RowHeaderWidth;
391
if (
dgTable
== null ||
dgTable
.DataGrid == null || !
dgTable
.DataGrid.AllowNavigation)
411
DataGrid.NavigateTo(((string)this.
dgTable
.RelationsList[FocusedRelation]), this, true);
438
relRect.X += rowHeaders.X + this.
dgTable
.RowHeaderWidth;
459
if (this.
dgTable
.RelationsList.Count == 0 ||
dgTable
.DataGrid == null || !
dgTable
.DataGrid.AllowNavigation)
479
relRect.X += rowHeaders.X + this.
dgTable
.RowHeaderWidth;
486
FocusedRelation = this.
dgTable
.RelationsList.Count - 1;
492
if (FocusedRelation == this.
dgTable
.RelationsList.Count - 1) {
504
relRect.X += rowHeaders.X + this.
dgTable
.RowHeaderWidth;
528
int bWidth = this.
dgTable
.BorderWidth;
540
if (expanded && this.
dgTable
.RelationsList.Count > 0) {
596
if (this.
dgTable
.IsDefault)
599
PaintHeaderInside(g, insideBounds, this.
dgTable
.HeaderBackBrush, alignToRight, isDirty);
604
bool paintPlusMinus =
dgTable
.RelationsList.Count > 0 &&
dgTable
.DataGrid.AllowNavigation;
661
relRect.Height -= this.
dgTable
.BorderWidth; // use bWidth not 1
676
if (this.
dgTable
.IsDefault)
679
bWidth = this.
dgTable
.GridLineWidth;
691
if (this.
dgTable
.IsDefault)
694
br = this.
dgTable
.GridLineBrush;
708
int relationshipHeight = this.
dgTable
.RelationshipHeight;
713
for (int r = 0; r < this.
dgTable
.RelationsList.Count; ++r) {
717
Brush textBrush = this.
dgTable
.IsDefault ? this.DataGrid.LinkBrush : this.
dgTable
.LinkBrush;
720
textBrush = this.
dgTable
.IsDefault ? this.DataGrid.LinkBrush : this.
dgTable
.LinkBrush;
730
g.DrawString(((string)this.
dgTable
.RelationsList[r]), textFont, textBrush, textBounds,
733
textBounds.Width = this.
dgTable
.FocusedTextWidth;
759
Pen drawPen = this.
dgTable
.IsDefault ? this.DataGrid.HeaderForePen : this.
dgTable
.HeaderForePen;
788
int relationshipHeight = this.
dgTable
.RelationshipHeight;
790
int cy = base.Height - this.
dgTable
.BorderWidth + System.Windows.Forms.DataGridTableStyle.relationshipSpacing;
797
if (relation >= this.
dgTable
.RelationsList.Count)
830
if (row.
dgTable
.RelationsList!= null) {
831
for (int i=0; i<row.
dgTable
.RelationsList.Count; i++) {
845
if (RelationshipRow.
dgTable
.RelationsList.Count > 0) {
860
if (RelationshipRow.
dgTable
.RelationsList.Count > 0) {
874
if (RelationshipRow.
dgTable
.RelationsList.Count > 0) {
881
int focusRel = row.
dgTable
.FocusedRelation;
886
return GetChild(GetChildCount() - row.
dgTable
.RelationsList.Count + focusRel);
907
bounds.Y += owner.
dgTable
.RelationshipHeight * relationship;
908
bounds.Height = owner.Expanded ? owner.
dgTable
.RelationshipHeight : 0; // when the row is collapsed the height of the relationship object should be 0
920
return (string)owner.
dgTable
.RelationsList[relationship];
965
if (DataGrid.Focused && Owner.
dgTable
.FocusedRelation == relationship) {
979
return (string)owner.
dgTable
.RelationsList[relationship];
997
DataGrid.NavigateTo((string)owner.
dgTable
.RelationsList[relationship], owner, true);
1017
if (relationship + 1 < owner.
dgTable
.RelationsList.Count) {
1018
return Parent.GetChild(Parent.GetChildCount() - owner.
dgTable
.RelationsList.Count + relationship + 1);
1025
return Parent.GetChild(Parent.GetChildCount() - owner.
dgTable
.RelationsList.Count + relationship - 1);
winforms\Managed\System\WinForms\DataGridRow.cs (44)
106
int h =
dgTable
.IsDefault ? this.DataGrid.PreferredRowHeight :
dgTable
.PreferredRowHeight;
109
if (this.
dgTable
.DataGrid.DataSource != null) {
133
return this.
dgTable
.DataGrid;
139
return this.
dgTable
;
179
this.
dgTable
.DataGrid.OnRowHeightChanged(this);
236
int firstVisibleCol = this.
dgTable
.DataGrid.FirstVisibleColumn;
239
GridColumnStylesCollection columns = this.
dgTable
.GridColumnStyles;
245
int borderWidth = this.
dgTable
.GridLineWidth;
318
this.
dgTable
.DataGrid.InvalidateRow(number);
322
this.
dgTable
.DataGrid.InvalidateRowRect(number, r);
338
int currentColIndex = this.
dgTable
.DataGrid.CurrentCell.ColumnNumber;
339
GridColumnStylesCollection columns = this.
dgTable
.GridColumnStyles;
439
PaintBottomBorder(g, bounds, dataWidth, this.
dgTable
.GridLineWidth, false);
449
g.FillRectangle(this.
dgTable
.IsDefault ? this.DataGrid.GridLineBrush : this.
dgTable
.GridLineBrush, bottomBorder);
453
g.FillRectangle(this.
dgTable
.DataGrid.BackgroundBrush,
481
int bWidth = this.
dgTable
.IsDefault ? this.DataGrid.GridLineWidth : this.
dgTable
.GridLineWidth;
484
DataGridCell current = this.
dgTable
.DataGrid.CurrentCell;
486
GridColumnStylesCollection columns =
dgTable
.GridColumnStyles;
516
g.FillRectangle(this.
dgTable
.IsDefault ? this.DataGrid.GridLineBrush : this.
dgTable
.GridLineBrush,
527
g.FillRectangle(this.
dgTable
.DataGrid.BackgroundBrush,
557
this.
dgTable
.IsDefault ? this.DataGrid.HeaderBackBrush : this.
dgTable
.HeaderBackBrush);
568
colorMap[0].NewColor = this.
dgTable
.IsDefault ? this.DataGrid.HeaderForeColor : this.
dgTable
.HeaderForeColor;
653
Brush br = this.
dgTable
.IsDefault ? DataGrid.BackBrush : this.
dgTable
.BackBrush;
655
br = this.
dgTable
.IsDefault ? this.DataGrid.AlternatingBackBrush : this.
dgTable
.AlternatingBackBrush;
670
backBr = this.
dgTable
.IsDefault ? this.DataGrid.SelectionBackBrush : this.
dgTable
.SelectionBackBrush;
682
Brush foreBrush = this.
dgTable
.IsDefault ? this.DataGrid.ForeBrush : this.
dgTable
.ForeBrush;
685
foreBrush = this.
dgTable
.IsDefault ? this.DataGrid.SelectionForeBrush : this.
dgTable
.SelectionForeBrush;
865
return DataGrid.AccessibilityObject.GetChild(1 + owner.
dgTable
.GridColumnStyles.Count + owner.RowNumber + 1);
870
return DataGrid.AccessibilityObject.GetChild(1 + owner.
dgTable
.GridColumnStyles.Count + owner.RowNumber - 1);
1022
AccessibleObject o = DataGrid.AccessibilityObject.GetChild(1 + owner.
dgTable
.GridColumnStyles.Count + owner.RowNumber + 1);
1029
return DataGrid.AccessibilityObject.GetChild(1 + owner.
dgTable
.GridColumnStyles.Count + owner.RowNumber + 1).Navigate(AccessibleNavigation.FirstChild);
1031
return DataGrid.AccessibilityObject.GetChild(1 + owner.
dgTable
.GridColumnStyles.Count + owner.RowNumber - 1).Navigate(AccessibleNavigation.FirstChild);
1038
AccessibleObject o = DataGrid.AccessibilityObject.GetChild(1 + owner.
dgTable
.GridColumnStyles.Count + owner.RowNumber - 1);