7 types derived from DataGridViewCell
System.Windows.Forms (7)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
25public class DataGridViewButtonCell : DataGridViewCell
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
26public class DataGridViewCheckBoxCell : DataGridViewCell, IDataGridViewEditingCell
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
25public class DataGridViewComboBoxCell : DataGridViewCell
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
22public class DataGridViewHeaderCell : DataGridViewCell
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
21public class DataGridViewImageCell : DataGridViewCell
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
21public class DataGridViewLinkCell : DataGridViewCell
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
21public class DataGridViewTextBoxCell : DataGridViewCell
368 references to DataGridViewCell
System.Windows.Forms (364)
winforms\Managed\System\WinForms\DataGridView.cs (12)
1482DataGridViewCell dataGridViewCell = this.CurrentCellInternal; 2176public DataGridViewCell CurrentCell 2245private DataGridViewCell CurrentCellInternal 2253DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[this.ptCurrentCell.X]; 2902public DataGridViewCell FirstDisplayedCell 2917DataGridViewCell firstDisplayedCell = value; 3727private bool IsSharedCellReadOnly(DataGridViewCell dataGridViewCell, int rowIndex) 3738internal bool IsSharedCellSelected(DataGridViewCell dataGridViewCell, int rowIndex) 3748internal bool IsSharedCellVisible(DataGridViewCell dataGridViewCell, int rowIndex) 4649foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 5086public DataGridViewCell this[int columnIndex, int rowIndex] 5106public DataGridViewCell this[string columnName, int rowIndex]
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
531var currentCell = dataGridView.CurrentCell;
winforms\Managed\System\WinForms\DataGridViewBand.cs (1)
586foreach (DataGridViewCell dataGridViewCell in ((DataGridViewRow) this).Cells)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (19)
342DataGridViewFreeDimension freeDimension = DataGridViewCell.GetFreeDimensionFromConstraint(constraintSize); 371preferredSize = new Size(DataGridViewCell.MeasureTextWidth(graphics, 380preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Width, 391DataGridViewCell.MeasureTextHeight(graphics, 400DataGridViewCell.MeasureTextSize(graphics, 411preferredSize = DataGridViewCell.MeasureTextPreferredSize(graphics, formattedString, cellStyle.Font, 5.0F, flags); 415preferredSize = DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags); 719SolidBrush backBrush = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 722if (paint && DataGridViewCell.PaintBorder(paintParts)) 736if (paint && DataGridViewCell.PaintBackground(paintParts) && backBrush.Color.A == 255) 763if (paint && DataGridViewCell.PaintContentBackground(paintParts)) 776if (DataGridViewCell.PaintFocus(paintParts) && 790if (paint && DataGridViewCell.PaintContentBackground(paintParts)) 803if (paint && DataGridViewCell.PaintContentBackground(paintParts)) 869if (paint && DataGridViewCell.PaintContentBackground(paintParts)) 934DataGridViewCell.PaintFocus(paintParts) && 1010if (formattedString != null && paint && DataGridViewCell.PaintContentForeground(paintParts)) 1047if (this.DataGridView.ShowCellErrors && paint && DataGridViewCell.PaintErrorIcon(paintParts)) 1106public DataGridViewButtonCellAccessibleObject(DataGridViewCell owner) : base (owner)
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
42public override DataGridViewCell CellTemplate
winforms\Managed\System\WinForms\DataGridViewCell.cs (19)
78/// Initializes a new instance of the <see cref='System.Windows.Forms.DataGridViewCell'/> class. 1142internal void CloneInternal(DataGridViewCell dataGridViewCell) 1173DataGridViewCell dataGridViewCell = (DataGridViewCell) System.Activator.CreateInstance(this.GetType()); 1542Bitmap b = new Bitmap(typeof(DataGridViewCell), bitmapName); 2611return DataGridViewCell.MeasureTextHeight(g, text, cellStyle.Font, maxWidth, flags, out widthTruncated); 2615Size size = DataGridViewCell.MeasureTextSize(g, text, cellStyle.Font, flags); 2834return DataGridViewCell.MeasureTextHeight(graphics, text, font, maxWidth, flags, out widthTruncated); 2903Size textOneLineSize = DataGridViewCell.MeasureTextSize(graphics, text, font, flags); 2964Size oneLineSize = DataGridViewCell.MeasureTextSize(graphics, text, font, flags); 3155preferredHeight = DataGridViewCell.GetPreferredTextHeight(g, 4311Bitmap bmp = DataGridViewCell.ErrorBitmap; 4700int requiredHeight = DataGridViewCell.MeasureTextHeight(graphics, text, font, maxBounds.Width, flags, out widthTruncated); 4744DataGridViewCell owner; 4752public DataGridViewCellAccessibleObject(DataGridViewCell owner) 4815DataGridViewCell dataGridViewCell = this.Owner; 4841public DataGridViewCell Owner 5038DataGridViewCell dataGridViewCell = (DataGridViewCell)this.Owner;
winforms\Managed\System\WinForms\DataGridViewCellCancelEventArgs.cs (1)
19internal DataGridViewCellCancelEventArgs(DataGridViewCell dataGridViewCell) : this(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex)
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (27)
19/// <para>Represents a collection of <see cref='System.Windows.Forms.DataGridViewCell'/> objects in the <see cref='System.Windows.Forms.DataGridView'/> 36return this.Add((DataGridViewCell) value); 64this.Insert(index, (DataGridViewCell) value); 71this.Remove((DataGridViewCell) value); 100set { this[index] = (DataGridViewCell) value; } 161public DataGridViewCell this[int index] 165return (DataGridViewCell) this.items[index]; 169DataGridViewCell dataGridViewCell = value; 187DataGridViewCell oldDataGridViewCell = (DataGridViewCell) this.items[index]; 216public DataGridViewCell this[string columnName] 229return (DataGridViewCell) this.items[dataGridViewColumn.Index]; 264/// <para>Adds a <see cref='System.Windows.Forms.DataGridViewCell'/> to this collection.</para> 266public virtual int Add(DataGridViewCell dataGridViewCell) 280internal int AddInternal(DataGridViewCell dataGridViewCell) 299public virtual void AddRange(params DataGridViewCell[] dataGridViewCells) 309foreach (DataGridViewCell dataGridViewCell in dataGridViewCells) 336foreach (DataGridViewCell dataGridViewCell in dataGridViewCells) 354foreach (DataGridViewCell dataGridViewCell in this.items) 363public void CopyTo(DataGridViewCell[] array, int index) 372public virtual bool Contains(DataGridViewCell dataGridViewCell) 379public int IndexOf(DataGridViewCell dataGridViewCell) 385public virtual void Insert(int index, DataGridViewCell dataGridViewCell) 402internal void InsertInternal(int index, DataGridViewCell dataGridViewCell) 431public virtual void Remove(DataGridViewCell cell) 472DataGridViewCell dataGridViewCell = (DataGridViewCell) this.items[index];
winforms\Managed\System\WinForms\DataGridViewCellConverter.cs (2)
33DataGridViewCell cell = value as DataGridViewCell;
winforms\Managed\System\WinForms\DataGridViewCellEventArgs.cs (1)
18internal DataGridViewCellEventArgs(DataGridViewCell dataGridViewCell) : this(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex)
winforms\Managed\System\WinForms\DataGridViewCellLinkedList.cs (9)
17/// <para>Represents a linked list of <see cref='System.Windows.Forms.DataGridViewCell'/> objects</para> 38public DataGridViewCell this[int index] 79public DataGridViewCell HeadCell 89public void Add(DataGridViewCell dataGridViewCell) 116public bool Contains(DataGridViewCell dataGridViewCell) 136public bool Remove(DataGridViewCell dataGridViewCell) 278private DataGridViewCell dataGridViewCell; 282public DataGridViewCellLinkedListElement(DataGridViewCell dataGridViewCell) 289public DataGridViewCell DataGridViewCell
winforms\Managed\System\WinForms\DataGridViewCellStateChangedEventArgs.cs (3)
14private DataGridViewCell dataGridViewCell; 18public DataGridViewCellStateChangedEventArgs(DataGridViewCell dataGridViewCell, DataGridViewElementStates stateChanged) 29public DataGridViewCell Cell
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (15)
760DataGridViewFreeDimension freeDimension = DataGridViewCell.GetFreeDimensionFromConstraint(constraintSize); 1167if (paint && DataGridViewCell.PaintBorder(paintParts)) 1217SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 1219if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255) 1239DataGridViewCell.PaintFocus(paintParts) && 1331if (paint && DataGridViewCell.PaintContentForeground(paintParts)) 1344if (paint && DataGridViewCell.PaintContentForeground(paintParts)) 1369if (paint && DataGridViewCell.PaintContentForeground(paintParts)) 1372backBrush = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 1402if (paint && DataGridViewCell.PaintContentForeground(paintParts)) 1486if (paint && DataGridViewCell.PaintContentForeground(paintParts)) 1533if (paint && DataGridViewCell.PaintContentForeground(paintParts)) 1578if (paint && DataGridViewCell.PaintContentForeground(paintParts)) 1625if (paint && DataGridViewCell.PaintErrorIcon(paintParts) && drawErrorText && this.DataGridView.ShowCellErrors) 1806public DataGridViewCheckBoxCellAccessibleObject(DataGridViewCell owner) : base (owner)
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (1)
51public override DataGridViewCell CellTemplate
winforms\Managed\System\WinForms\DataGridViewColumn.cs (5)
40private DataGridViewCell cellTemplate; 63public DataGridViewColumn() : this((DataGridViewCell) null) 68public DataGridViewColumn(DataGridViewCell cellTemplate) : base() 204public virtual DataGridViewCell CellTemplate 1125dataGridViewColumn.cellTemplate = (DataGridViewCell)this.CellTemplate.Clone();
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (15)
531DataGridViewFreeDimension freeDimension = DataGridViewCell.GetFreeDimensionFromConstraint(constraintSize); 556preferredSize = new Size(DataGridViewCell.MeasureTextWidth(graphics, 565preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, 617DataGridViewCell.MeasureTextHeight(graphics, 630DataGridViewCell.MeasureTextHeight(graphics, 642DataGridViewCell.MeasureTextSize(graphics, 658preferredSize = DataGridViewCell.MeasureTextPreferredSize(graphics, valStr, cellStyle.Font, 5.0F, flags); 662preferredSize = DataGridViewCell.MeasureTextSize(graphics, valStr, cellStyle.Font, flags); 786if (paint && DataGridViewCell.PaintBorder(paintParts)) 821if (paint && DataGridViewCell.PaintBackground(paintParts) && backgroundBounds.Width > 0 && backgroundBounds.Height > 0) 891if (paint && DataGridViewCell.PaintBackground(paintParts) && backgroundBounds.Width > 0 && backgroundBounds.Height > 0) 893br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) || IsHighlighted() ? 950int preferredHeight = DataGridViewCell.GetPreferredTextHeight(g, this.DataGridView.RightToLeftInternal, formattedValueStr, cellStyle, width, out widthTruncated); 985if (DataGridViewCell.PaintContentForeground(paintParts)) 1016if (paint && displaySortGlyph && DataGridViewCell.PaintContentBackground(paintParts))
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (18)
1057return DataGridViewCell.MeasureTextHeight(graphics, " ", cellStyle.Font, System.Int32.MaxValue, TextFormatFlags.Default) + adjustment; 1370DataGridViewFreeDimension freeDimension = DataGridViewCell.GetFreeDimensionFromConstraint(constraintSize); 1448preferredSize = DataGridViewCell.MeasureTextSize(graphics, formattedValue, cellStyle.Font, flags); 1452preferredSize = DataGridViewCell.MeasureTextSize(graphics, " ", cellStyle.Font, flags); 2140if (paint && DataGridViewCell.PaintBorder(paintParts)) 2160if (DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected && !cellEdited) 2169if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255 && valBounds.Width > 0 && valBounds.Height > 0) 2171DataGridViewCell.PaintPadding(g, valBounds, cellStyle, br, this.DataGridView.RightToLeftInternal); 2192if (paintPostXPThemes && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255) 2196if (DataGridViewCell.PaintContentBackground(paintParts)) 2208DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255 && valBounds.Width > 2 && valBounds.Height > 2) 2213else if (DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255) 2277if (paint && DataGridViewCell.PaintContentBackground(paintParts)) 2532DataGridViewCell.PaintFocus(paintParts) && 2572if (!cellEdited && paint && DataGridViewCell.PaintContentBackground(paintParts) && drawComboBox) 2601if (DataGridViewCell.PaintContentForeground(paintParts)) 2631if (this.DataGridView.ShowCellErrors && paint && DataGridViewCell.PaintErrorIcon(paintParts)) 3256public DataGridViewComboBoxCellAccessibleObject(DataGridViewCell owner) : base(owner)
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (1)
77public override DataGridViewCell CellTemplate
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (3)
641if (DataGridViewCell.PaintBorder(paintParts)) 646if (DataGridViewCell.PaintBackground(paintParts)) 656SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (13)
478DataGridViewFreeDimension freeDimension = DataGridViewCell.GetFreeDimensionFromConstraint(constraintSize); 811if (paint && DataGridViewCell.PaintBorder(paintParts)) 841SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 871if (DataGridViewCell.PaintBackground(paintParts)) 873DataGridViewCell.PaintPadding(g, valBounds, cellStyle, br, this.DataGridView.RightToLeftInternal); 875if (DataGridViewCell.PaintContentForeground(paintParts)) 903if (DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255) 907if (DataGridViewCell.PaintContentForeground(paintParts)) 927if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255) 936if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255) 945DataGridViewCell.PaintFocus(paintParts) && 955if (this.DataGridView.ShowCellErrors && paint && DataGridViewCell.PaintErrorIcon(paintParts)) 991public DataGridViewImageCellAccessibleObject(DataGridViewCell owner) : base (owner)
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
56public override DataGridViewCell CellTemplate
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (16)
665DataGridViewFreeDimension freeDimension = DataGridViewCell.GetFreeDimensionFromConstraint(constraintSize); 684preferredSize = new Size(DataGridViewCell.MeasureTextWidth(graphics, 695DataGridViewCell.MeasureTextHeight(graphics, 704preferredSize = DataGridViewCell.MeasureTextPreferredSize(graphics, 719preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Width, 726DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Height); 731preferredSize = DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags); 1003if (paint && DataGridViewCell.PaintBorder(paintParts)) 1019SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 1021if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255) 1066DataGridViewCell.PaintFocus(paintParts)) 1099if (DataGridViewCell.PaintContentForeground(paintParts)) 1116DataGridViewCell.PaintFocus(paintParts) && 1141DataGridViewCell.PaintFocus(paintParts) && 1158if (this.DataGridView.ShowCellErrors && paint && DataGridViewCell.PaintErrorIcon(paintParts)) 1177public DataGridViewLinkCellAccessibleObject(DataGridViewCell owner) : base (owner)
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (1)
83public override DataGridViewCell CellTemplate
winforms\Managed\System\WinForms\DataGridViewMethods.cs (101)
386DataGridViewCell dataGridViewCell; 464DataGridViewCell dataGridViewCell; 2619DataGridViewCell dataGridViewCell = this.CurrentCellInternal; 2649DataGridViewCell previousCurrentCell = dataGridViewCell; 2824private void BuildInheritedColumnHeaderCellStyle(DataGridViewCellStyle inheritedCellStyle, DataGridViewCell cell) 3279DataGridViewCell dataGridViewCell = this.CurrentCellInternal; 3343private bool CanValidateDataBoundDataGridViewCell(DataGridViewCell dataGridViewCurrentCell) 3765DataGridViewCell dataGridViewCurrentCell = this.CurrentCellInternal; 3789private DataGridViewDataErrorEventArgs CommitEdit(ref DataGridViewCell dataGridViewCurrentCell, 3994DataGridViewCell dataGridViewCurrentCell = this.CurrentCellInternal; 4081DataGridViewCell dataGridViewCellTmp = null; 4167DataGridViewCell[] cells = new DataGridViewCell[this.Columns.Count - cellsInCollection]; 4174DataGridViewCell dgvcNew = (DataGridViewCell) this.Columns[columnIndex].CellTemplate.Clone(); 6217DataGridViewCell dataGridViewCurrentCell = this.CurrentCellInternal; 6953foreach (DataGridViewCell dataGridViewCell in this.individualSelectedCells) 6976DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 6991foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 7021foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 7033private bool GetCellCount_CellIncluded(DataGridViewCell dataGridViewCell, 7179internal DataGridViewCell GetCellInternal(int columnIndex, int rowIndex) 7786foreach (DataGridViewCell dataGridViewCell in this.individualSelectedCells) 7952foreach (DataGridViewCell dataGridViewCell in this.individualSelectedCells) 9838private bool InitializeEditingCellValue(ref DataGridViewCellStyle dataGridViewCellStyle, ref DataGridViewCell dataGridViewCell) 9887private bool InitializeEditingControlValue(ref DataGridViewCellStyle dataGridViewCellStyle, DataGridViewCell dataGridViewCell) 9932public void InvalidateCell(DataGridViewCell dataGridViewCell) 9945private void InvalidateCellPrivate(DataGridViewCell dataGridViewCell) 10785foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 10965DataGridViewCell dataGridViewCellNew = (DataGridViewCell)dataGridViewColumn.CellTemplate.Clone(); 11107DataGridViewCell dataGridViewCellNew = (DataGridViewCell)dataGridViewColumn.CellTemplate.Clone(); 11163DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 11769DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11855DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11891DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11910internal void OnCellContextMenuStripChanged(DataGridViewCell dataGridViewCell) 11973DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12011internal void OnCellEnter(ref DataGridViewCell dataGridViewCell, int columnIndex, int rowIndex) 12057internal void OnCellErrorTextChanged(DataGridViewCell dataGridViewCell) 12144internal void OnCellLeave(ref DataGridViewCell dataGridViewCell, int columnIndex, int rowIndex) 12202DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12234DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12267DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12931DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12965DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12996DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 13064DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 13168DataGridViewCell dataGridViewCell = e.Cell; 13204internal void OnCellStyleChanged(DataGridViewCell dataGridViewCell) 13390internal void OnCellToolTipTextChanged(DataGridViewCell dataGridViewCell) 13441internal void OnCellValidated(ref DataGridViewCell dataGridViewCell, int columnIndex, int rowIndex) 13488internal bool OnCellValidating(ref DataGridViewCell dataGridViewCell, int columnIndex, int rowIndex, DataGridViewDataErrorContexts context) 13490DataGridViewCell currentCell = (dataGridViewCell == null) ? this.CurrentCellInternal : dataGridViewCell; 14199DataGridViewCell dataGridViewCellTmp = null; 15159DataGridViewCell dataGridViewCell = element as DataGridViewCell; 15317DataGridViewCell dataGridViewCell = element as DataGridViewCell; 15530DataGridViewCell dataGridViewCell = null; 15929DataGridViewCell dataGridViewCellNew = (DataGridViewCell)dataGridViewColumn.CellTemplate.Clone(); 16144DataGridViewCell dataGridViewCell = this.CurrentCellInternal; 16202DataGridViewCell dataGridViewCell = this.CurrentCellInternal; 16236DataGridViewCell dataGridViewCell = this.CurrentCellInternal; 16275DataGridViewCell dataGridViewCell = null; 17817DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 17858DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 18112private void OnRowEnter(ref DataGridViewCell dataGridViewCell, int columnIndex, int rowIndex, bool canCreateNewRow, bool validationFailureOccurred) 18454DataGridViewCell dataGridViewCellTmp = null; 18820private void OnRowLeave(ref DataGridViewCell dataGridViewCell, int columnIndex, int rowIndex) 19256private bool OnRowValidating(ref DataGridViewCell dataGridViewCell, int columnIndex, int rowIndex) 19298private void OnRowValidated(ref DataGridViewCell dataGridViewCell, int columnIndex, int rowIndex) 19630DataGridViewCell dataGridViewCellTmp = null; 19897DataGridViewCell cell; 20224DataGridViewCell cell = this.TopLeftHeaderCell; 20320foreach (DataGridViewCell dataGridViewCell in newRowCells) 20329foreach (DataGridViewCell dataGridViewCell in newRowCells) 21863DataGridViewCell dataGridViewCurrentCell = null; 22310DataGridViewCell dataGridViewCell = this.CurrentCellInternal; 25442DataGridViewCell dataGridViewCell = this.CurrentCellInternal; 25461DataGridViewCell dataGridViewCurrentCell = this.CurrentCellInternal; 25508private bool PushFormattedValue(ref DataGridViewCell dataGridViewCurrentCell, object formattedValue, out Exception exception) 25640DataGridViewCell dataGridViewCurrentCell = this.CurrentCellInternal; 25762DataGridViewCell dataGridViewCell = this.individualReadOnlyCells[cellIndex]; 25779DataGridViewCell dataGridViewCell = this.individualReadOnlyCells[cellIndex]; 25804DataGridViewCell dataGridViewCell = this.individualSelectedCells.HeadCell; 25830DataGridViewCell dataGridViewCell = this.individualSelectedCells.HeadCell; 25862DataGridViewCell dataGridViewCell; 25916DataGridViewCell dataGridViewCell = this.individualSelectedCells[cellIndex]; 26732private DataGridViewCell SelectedCell(int index) 26859DataGridViewCell dataGridViewCellTmp = null; 26885DataGridViewCell currentCell; 27088DataGridViewCell currentCell = this.CurrentCellInternal; 27433DataGridViewCell dataGridViewCell = this.individualSelectedCells.HeadCell; 27495DataGridViewCell dataGridViewCell = this.Rows[rowIndex].Cells[columnIndex]; 27513DataGridViewCell dataGridViewCellTmp; 27648DataGridViewCell dataGridViewCell = this.Rows[rowIndex].Cells[columnIndex]; 27667DataGridViewCell dataGridViewCellTmp; 29868DataGridViewCell dataGridViewCell = null;
winforms\Managed\System\WinForms\DataGridViewRow.cs (12)
1156DataGridViewCell[] cells = new DataGridViewCell[cellsCount]; 1159DataGridViewCell dataGridViewCell = rowTemplate.Cells[i]; 1160DataGridViewCell dgvcNew = (DataGridViewCell) dataGridViewCell.Clone(); 1206DataGridViewCell dgvcNew = (DataGridViewCell)dataGridViewColumn.CellTemplate.Clone(); 1252foreach (DataGridViewCell dataGridViewCell in this.Cells) 1417foreach (DataGridViewCell dataGridViewCell in this.Cells) 1609DataGridViewCell cell; 1827internal void SetReadOnlyCellCore(DataGridViewCell dataGridViewCell, bool readOnly) 1834foreach (DataGridViewCell dataGridViewCellTmp in this.Cells)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (15)
283foreach (DataGridViewCell dataGridViewCell in newDataGridViewRow.Cells) 361foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 386foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 521foreach (DataGridViewCell dataGridViewCell in rowTemplate.Cells) 586foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 825foreach (DataGridViewCell dataGridViewCell in dgvcc) 897foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 1564foreach (DataGridViewCell dataGridViewCell in rowTemplate.Cells) 1651foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 1843foreach (DataGridViewCell dataGridViewCell in dgvcc) 1925foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 2362foreach (DataGridViewCell dataGridViewCell in cells) 2386foreach (DataGridViewCell dataGridViewCell in cells) 2507DataGridViewCell dataGridViewCell1 = dataGridViewRow1.Cells[columnIndex]; 2508DataGridViewCell dataGridViewCell2 = dataGridViewRow2.Cells[columnIndex];
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (10)
778if (paint && DataGridViewCell.PaintBorder(paintParts)) 811if (paint && DataGridViewCell.PaintBackground(paintParts)) 866SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 867if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255) 902if (paint && DataGridViewCell.PaintContentBackground(paintParts)) 979if (DataGridViewCell.TextFitsInBounds(graphics, 994if (DataGridViewCell.PaintContentForeground(paintParts)) 1029if (paint && this.DataGridView.ShowRowErrors && DataGridViewCell.PaintErrorIcon(paintParts)) 1048if (paint && DataGridViewCell.PaintContentBackground(paintParts)) 1111if (paint && this.DataGridView.ShowRowErrors && DataGridViewCell.PaintErrorIcon(paintParts))
winforms\Managed\System\WinForms\DataGridViewSelectedCellCollection.cs (10)
19/// <para>Represents a collection of selected <see cref='System.Windows.Forms.DataGridViewCell'/> objects in the <see cref='System.Windows.Forms.DataGridView'/> 150public DataGridViewCell this[int index] 154return (DataGridViewCell) this.items[index]; 160/// <para>Adds a <see cref='System.Windows.Forms.DataGridViewCell'/> to this collection.</para> 162internal int Add(DataGridViewCell dataGridViewCell) 192/// <para>Adds all the <see cref='System.Windows.Forms.DataGridViewCell'/> objects from the provided linked list to this collection.</para> 197foreach (DataGridViewCell dataGridViewCell in dataGridViewCells) 217public bool Contains(DataGridViewCell dataGridViewCell) 223public void CopyTo(DataGridViewCell[] array, int index) 233public void Insert(int index, DataGridViewCell dataGridViewCell)
winforms\Managed\System\WinForms\DataGridViewSelectedColumnCollection.cs (1)
157/// <para>Adds a <see cref='System.Windows.Forms.DataGridViewCell'/> to this collection.</para>
winforms\Managed\System\WinForms\DataGridViewSelectedRowCollection.cs (2)
19/// <para>Represents a collection of selected <see cref='System.Windows.Forms.DataGridViewCell'/> objects in the <see cref='System.Windows.Forms.DataGridView'/> 160/// <para>Adds a <see cref='System.Windows.Forms.DataGridViewCell'/> to this collection.</para>
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (15)
278preferredHeight = DataGridViewCell.MeasureTextHeight(g, editedFormattedValue, cellStyle.Font, originalWidth, flags); 440DataGridViewFreeDimension freeDimension = DataGridViewCell.GetFreeDimensionFromConstraint(constraintSize); 454preferredSize = new Size(DataGridViewCell.MeasureTextWidth(graphics, 465DataGridViewCell.MeasureTextHeight(graphics, 474preferredSize = DataGridViewCell.MeasureTextPreferredSize(graphics, 489preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Width, 496DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Height); 501preferredSize = DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags); 690if (paint && DataGridViewCell.PaintBorder(paintParts)) 708if (DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected && !cellEdited) 717if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255 && valBounds.Width > 0 && valBounds.Height > 0) 739if (DataGridViewCell.PaintFocus(paintParts) && 764if (DataGridViewCell.PaintContentForeground(paintParts)) 797if (this.DataGridView.ShowCellErrors && paint && DataGridViewCell.PaintErrorIcon(paintParts)) 836public DataGridViewTextBoxCellAccessibleObject(DataGridViewCell owner) : base(owner)
winforms\Managed\System\WinForms\DataGridViewTextBoxColumn.cs (1)
33public override DataGridViewCell CellTemplate
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (5)
282if (paint && DataGridViewCell.PaintBackground(paintParts)) 305SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 313if (paint && DataGridViewCell.PaintBorder(paintParts)) 356if (DataGridViewCell.PaintContentForeground(paintParts)) 381if (this.DataGridView.ShowCellErrors && paint && DataGridViewCell.PaintErrorIcon(paintParts))
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (7)
180DataGridViewFreeDimension freeDimension = DataGridViewCell.GetFreeDimensionFromConstraint(constraintSize); 194preferredWidth = DataGridViewCell.MeasureTextWidth(graphics, val, cellStyle.Font, maxHeight, flags); 198preferredWidth = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.Font, flags).Width; 248minHeightContent = DataGridViewCell.MeasureTextHeight(graphics, val, cellStyle.Font, allowedWidth, flags); 252minHeightContent = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.Font, flags).Height; 272preferredSize = DataGridViewCell.MeasureTextPreferredSize(graphics, val, cellStyle.Font, 5.0F, flags); 276preferredSize = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.Font, flags);
System.WorkflowServices (4)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (4)
207private void BrowseAndSelectType(DataGridViewCell currentCell) 224DataGridViewCell currentCell = this.parametersGrid.Rows[combo.EditingControlRowIndex].Cells[this.typeColumn.Index]; 423DataGridViewCell currentCell = this.parametersGrid.Rows[e.RowIndex].Cells[e.ColumnIndex]; 645bool TrySelectType(TypeBrowserDialog typeBrowserDialog, DataGridViewCell cell)