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