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