59 references to DataGrid
System.Windows.Forms (59)
winforms\Managed\System\WinForms\DataGridAddNewRow.cs (4)
53
DataGrid
.AddNewRow();
92
gridStyle = this.
DataGrid
.GridLineStyle;
95
int bWidth = this.
DataGrid
== null ? 0 : gridStyle == DataGridLineStyle.Solid ? 1 : 0;
107
CurrencyManager listManager =
DataGrid
.ListManager;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (32)
155
DataGrid
.OnRowHeightChanged(this);
167
&&
DataGrid
!= null
174
DataGrid
.OnRowHeightChanged(this);
270
bool rowHeadersVisible = this.dgTable.IsDefault ? this.
DataGrid
.RowHeadersVisible : this.dgTable.RowHeadersVisible;
272
int rowHeaderWidth = this.dgTable.IsDefault ? this.
DataGrid
.RowHeaderWidth : this.dgTable.RowHeaderWidth;
273
relRect.X +=
DataGrid
.GetRowHeaderRect().X + rowHeaderWidth;
275
relRect.X = MirrorRelationshipRectangle(relRect,
DataGrid
.GetRowHeaderRect(),
DataGrid
.RightToLeft == RightToLeft.Yes);
289
if (!this.
DataGrid
.FlatMode) {
301
bool rowHeadersVisible = this.dgTable.IsDefault ? this.
DataGrid
.RowHeadersVisible : this.dgTable.RowHeadersVisible;
313
DataGrid
.OnNodeClick(EventArgs.Empty);
329
DataGrid
.NavigateTo(((string)this.dgTable.RelationsList[r]), this, true);
345
this.
DataGrid
.Cursor = Cursors.Hand;
349
this.
DataGrid
.Cursor = Cursors.Default;
411
DataGrid
.NavigateTo(((string)this.dgTable.RelationsList[FocusedRelation]), this, true);
558
CurrencyManager listManager =
DataGrid
.ListManager;
564
object errInfo =
DataGrid
.ListManager[this.number];
579
DataGrid
.ToolTipProvider.AddToolTip(errString, (IntPtr)(
DataGrid
.ToolTipId ++), errRect);
587
DataGrid grid = this.
DataGrid
;
597
PaintHeaderInside(g, insideBounds, this.
DataGrid
.HeaderBackBrush, alignToRight, isDirty);
677
bWidth = this.
DataGrid
.GridLineWidth;
680
g.FillRectangle(
DataGrid
.BackgroundBrush,
692
br = this.
DataGrid
.GridLineBrush;
717
Brush textBrush = this.dgTable.IsDefault ? this.
DataGrid
.LinkBrush : this.dgTable.LinkBrush;
719
Font textFont = this.
DataGrid
.Font;
720
textBrush = this.dgTable.IsDefault ? this.
DataGrid
.LinkBrush : this.dgTable.LinkBrush;
721
textFont = this.
DataGrid
.LinkFont;
732
if (r == FocusedRelation && this.number == this.
DataGrid
.CurrentCell.RowNumber) {
759
Pen drawPen = this.dgTable.IsDefault ? this.
DataGrid
.HeaderForePen : this.dgTable.HeaderForePen;
914
return owner.
DataGrid
.RectangleToScreen(bounds);
939
return owner.
DataGrid
;
winforms\Managed\System\WinForms\DataGridRow.cs (20)
106
int h = dgTable.IsDefault ? this.
DataGrid
.PreferredRowHeight : dgTable.PreferredRowHeight;
449
g.FillRectangle(this.dgTable.IsDefault ? this.
DataGrid
.GridLineBrush : this.dgTable.GridLineBrush, bottomBorder);
481
int bWidth = this.dgTable.IsDefault ? this.
DataGrid
.GridLineWidth : this.dgTable.GridLineWidth;
516
g.FillRectangle(this.dgTable.IsDefault ? this.
DataGrid
.GridLineBrush : this.dgTable.GridLineBrush,
557
this.dgTable.IsDefault ? this.
DataGrid
.HeaderBackBrush : this.dgTable.HeaderBackBrush);
568
colorMap[0].NewColor = this.dgTable.IsDefault ? this.
DataGrid
.HeaderForeColor : this.dgTable.HeaderForeColor;
607
bounds.X += PaintIcon(g, bounds, RowNumber == this.
DataGrid
.CurrentCell.RowNumber, alignToRight, bmp).Width + xOffset;
614
bounds.X += PaintIcon(g, bounds, RowNumber == this.
DataGrid
.CurrentCell.RowNumber, alignToRight, bmp).Width + xOffset;
620
object errorInfo =
DataGrid
.ListManager[this.number];
630
DataGrid
.ToolTipProvider.RemoveToolTip(tooltipID);
648
tooltipID = (IntPtr)((int)
DataGrid
.ToolTipId++);
649
DataGrid
.ToolTipProvider.AddToolTip(tooltip, tooltipID, errRect);
653
Brush br = this.dgTable.IsDefault ?
DataGrid
.BackBrush : this.dgTable.BackBrush;
654
if (
DataGrid
.LedgerStyle && (RowNumber % 2 == 1)) {
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;
789
return owner.
DataGrid
;
938
return owner.
DataGrid
;
winforms\Managed\System\WinForms\DataGridState.cs (3)
164
DataGrid g = owner.LinkingRow.
DataGrid
;
180
return owner.LinkingRow.
DataGrid
.ParentRowsAccessibleObject;
195
CurrencyManager source = (CurrencyManager)owner.LinkingRow.
DataGrid
.BindingContext[owner.DataSource, owner.DataMember];