25 types derived from DataGridViewCell
System.Windows.Forms (9)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
15public partial class DataGridViewButtonCell : DataGridViewCell
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
15public partial class DataGridViewCheckBoxCell : DataGridViewCell, IDataGridViewEditingCell
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
13public partial class DataGridViewComboBoxCell : DataGridViewCell
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ItemComparer.cs (1)
8public partial class DataGridViewComboBoxCell : DataGridViewCell
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
9public partial class DataGridViewComboBoxCell : DataGridViewCell
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
12public partial class DataGridViewHeaderCell : DataGridViewCell
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
11public partial class DataGridViewImageCell : DataGridViewCell
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
10public partial class DataGridViewLinkCell : DataGridViewCell
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
12public partial class DataGridViewTextBoxCell : DataGridViewCell
System.Windows.Forms.Tests (16)
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
15public class DataGridViewCellAccessibleObjectTests : DataGridViewCell 1488private class SubDataGridViewCell : DataGridViewCell
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (1)
2404private class SubDataGridViewCell : DataGridViewCell
System\Windows\Forms\DataGridViewCellStateChangedEventArgsTests.cs (1)
28private class SubDataGridViewCell : DataGridViewCell
System\Windows\Forms\DataGridViewCellTests.cs (5)
3415public class CreateAccessibilityInstanceTests : DataGridViewCell 3457private class CustomCreateAccessibilityInstanceDataGridViewCell : DataGridViewCell 6220private class CustomFormattedValueType : DataGridViewCell 6572private class CustomStateDataGridViewCell : DataGridViewCell 6579private class SubDataGridViewCell : DataGridViewCell
System\Windows\Forms\DataGridViewColumnCollectionTests.cs (1)
561private class SubDataGridViewCell : DataGridViewCell
System\Windows\Forms\DataGridViewColumnTests.cs (1)
1811private class SubDataGridViewCell : DataGridViewCell
System\Windows\Forms\DataGridViewElementTests.cs (1)
382private class SubDataGridViewCell : DataGridViewCell
System\Windows\Forms\DataGridViewRowTests.cs (2)
5718private class CantSetDataGridViewCell : DataGridViewCell 5762private class SubDataGridViewCell : DataGridViewCell
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (1)
522private class SubDataGridViewCell : DataGridViewCell
System\Windows\Forms\DataGridViewTests.cs (1)
2889private class SubDataGridViewCell : DataGridViewCell
432 references to DataGridViewCell
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
268DataGridViewCell cell = row.Cells[RightsTableColumnToIndex(RightsTableColumn.User)]; 380DataGridViewCell nameCell = new DataGridViewTextBoxCell
System.Windows.Forms (233)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (12)
1137DataGridViewCell dataGridViewCell = CurrentCellInternal; 1697public DataGridViewCell? CurrentCell 1771private DataGridViewCell CurrentCellInternal 1779DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[_ptCurrentCell.X]; 2275public DataGridViewCell? FirstDisplayedCell 2291DataGridViewCell firstDisplayedCell = value; 2916private bool IsSharedCellReadOnly(DataGridViewCell dataGridViewCell, int rowIndex) 2927internal bool IsSharedCellSelected(DataGridViewCell dataGridViewCell, int rowIndex) 2937internal bool IsSharedCellVisible(DataGridViewCell dataGridViewCell, int rowIndex) 3661foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 4003public DataGridViewCell this[int columnIndex, int rowIndex] 4019public DataGridViewCell this[string columnName, int rowIndex]
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
45DataGridViewCell? currentCell = owner.CurrentCell;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (106)
48DataGridViewCell? currentCell = CurrentCell; 376DataGridViewCell dataGridViewCell; 455DataGridViewCell dataGridViewCell; 2582DataGridViewCell dataGridViewCell = CurrentCellInternal; 2612DataGridViewCell previousCurrentCell = dataGridViewCell; 2790private void BuildInheritedColumnHeaderCellStyle(DataGridViewCellStyle inheritedCellStyle, DataGridViewCell cell) 3239DataGridViewCell dataGridViewCell = CurrentCellInternal; 3303private bool CanValidateDataBoundDataGridViewCell(DataGridViewCell? dataGridViewCurrentCell) 3721DataGridViewCell? dataGridViewCurrentCell = CurrentCellInternal; 3749ref DataGridViewCell? dataGridViewCurrentCell, 3981DataGridViewCell? dataGridViewCurrentCell = CurrentCellInternal; 4085DataGridViewCell? dataGridViewCellTmp = null; 4191DataGridViewCell[] cells = new DataGridViewCell[Columns.Count - cellsInCollection]; 4199DataGridViewCell dgvcNew = (DataGridViewCell)Columns[columnIndex].CellTemplate!.Clone(); 6172DataGridViewCell? dataGridViewCurrentCell = CurrentCellInternal; 6887foreach (DataGridViewCell dataGridViewCell in _individualSelectedCells) 6912DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 6929foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 6959foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 6973DataGridViewCell dataGridViewCell, 7103internal DataGridViewCell GetCellInternal(int columnIndex, int rowIndex) 7115return columnIndex >= 0 ? Columns[columnIndex].HeaderCell : (DataGridViewCell)TopLeftHeaderCell; 7752foreach (DataGridViewCell dataGridViewCell in _individualSelectedCells) 7866foreach (DataGridViewCell dataGridViewCell in _individualSelectedCells) 9682private bool InitializeEditingCellValue(ref DataGridViewCellStyle dataGridViewCellStyle, ref DataGridViewCell dataGridViewCell) 9721private bool InitializeEditingControlValue(ref DataGridViewCellStyle dataGridViewCellStyle, DataGridViewCell dataGridViewCell) 9760public void InvalidateCell(DataGridViewCell dataGridViewCell) 9772private void InvalidateCellPrivate(DataGridViewCell dataGridViewCell) 10600foreach (DataGridViewCell dataGridViewCell in dataGridViewRowDebug.Cells) 10611foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 10812DataGridViewCell dataGridViewCellNew = (DataGridViewCell)dataGridViewColumn.CellTemplate.Clone(); 10964DataGridViewCell dataGridViewCellNew = (DataGridViewCell)dataGridViewColumn.CellTemplate!.Clone(); 11019DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 11548DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11632DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11657DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11673internal void OnCellContextMenuStripChanged(DataGridViewCell dataGridViewCell) 11702DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11724internal void OnCellEnter(ref DataGridViewCell? dataGridViewCell, int columnIndex, int rowIndex) 11757internal void OnCellErrorTextChanged(DataGridViewCell dataGridViewCell) 11812internal void OnCellLeave(ref DataGridViewCell? dataGridViewCell, int columnIndex, int rowIndex) 11849DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11870DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 11891DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12615DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12638DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12658DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12716DataGridViewCell dataGridViewCell = GetCellInternal(e.ColumnIndex, e.RowIndex); 12811DataGridViewCell dataGridViewCell = e.Cell; 12843internal void OnCellStyleChanged(DataGridViewCell dataGridViewCell) 13023internal void OnCellToolTipTextChanged(DataGridViewCell dataGridViewCell) 13048internal void OnCellValidated(ref DataGridViewCell? dataGridViewCell, int columnIndex, int rowIndex) 13086ref DataGridViewCell? dataGridViewCell, 13091DataGridViewCell currentCell = dataGridViewCell ?? CurrentCellInternal; 13723DataGridViewCell? dataGridViewCellTmp = null; 14676if (element is DataGridViewCell dataGridViewCell) 14840if (element is DataGridViewCell dataGridViewCell) 15018DataGridViewCell? dataGridViewCell = null; 15447DataGridViewCell dataGridViewCellNew = (DataGridViewCell)dataGridViewColumn.CellTemplate.Clone(); 15681DataGridViewCell dataGridViewCell = CurrentCellInternal; 15740DataGridViewCell dataGridViewCell = CurrentCellInternal; 15774DataGridViewCell dataGridViewCell = CurrentCellInternal; 15817DataGridViewCell? dataGridViewCell = null; 17244foreach (DataGridViewCell cell in Rows[rowIndexDeleted].Cells) 17377DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 17421DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 17649ref DataGridViewCell? dataGridViewCell, 17974DataGridViewCell? dataGridViewCellTmp = null; 18320private void OnRowLeave(ref DataGridViewCell? dataGridViewCell, int columnIndex, int rowIndex) 18720private bool OnRowValidating(ref DataGridViewCell? dataGridViewCell, int columnIndex, int rowIndex) 18762private void OnRowValidated(ref DataGridViewCell? dataGridViewCell, int columnIndex, int rowIndex) 19067DataGridViewCell? dataGridViewCellTmp = null; 19346DataGridViewCell cell; 19679DataGridViewCell cell = TopLeftHeaderCell; 19774foreach (DataGridViewCell dataGridViewCell in newRowCells) 19784foreach (DataGridViewCell dataGridViewCell in newRowCells) 19801DataGridViewCell dataGridViewCell = CurrentCellInternal; 21415DataGridViewCell? dataGridViewCurrentCell = null; 21880DataGridViewCell dataGridViewCell = CurrentCellInternal; 22046DataGridViewCell dataGridViewCell = CurrentCell; 25273DataGridViewCell dataGridViewCell = CurrentCellInternal; 25291DataGridViewCell dataGridViewCurrentCell = CurrentCellInternal; 25341private bool PushFormattedValue(ref DataGridViewCell dataGridViewCurrentCell, object? formattedValue, out Exception? exception) 25476DataGridViewCell dataGridViewCurrentCell = CurrentCellInternal; 25610foreach (DataGridViewCell cell in row.Cells) 25642DataGridViewCell dataGridViewCell = _individualReadOnlyCells[cellIndex]; 25659DataGridViewCell dataGridViewCell = _individualReadOnlyCells[cellIndex]; 25685DataGridViewCell dataGridViewCell = _individualSelectedCells.HeadCell; 25712DataGridViewCell dataGridViewCell = _individualSelectedCells.HeadCell; 25745DataGridViewCell dataGridViewCell; 25799DataGridViewCell dataGridViewCell = _individualSelectedCells[cellIndex]; 26640private DataGridViewCell? SelectedCell(int index) 26780DataGridViewCell? dataGridViewCellTmp = null; 26805DataGridViewCell currentCell; 27023DataGridViewCell currentCell = CurrentCellInternal; 27413DataGridViewCell dataGridViewCell = _individualSelectedCells.HeadCell; 27478DataGridViewCell dataGridViewCell = Rows[rowIndex].Cells[columnIndex]; 27495DataGridViewCell dataGridViewCellTmp; 27628DataGridViewCell dataGridViewCell = Rows[rowIndex].Cells[columnIndex]; 27647DataGridViewCell dataGridViewCellTmp; 29976DataGridViewCell? dataGridViewCell = null;
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
436foreach (DataGridViewCell? dataGridViewCell in ((DataGridViewRow)this).Cells)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject.cs (1)
13public DataGridViewButtonCellAccessibleObject(DataGridViewCell? owner) : base(owner)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
30public override DataGridViewCell? CellTemplate
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (5)
61/// Initializes a new instance of the <see cref="DataGridViewCell"/> class. 902internal void CloneInternal(DataGridViewCell dataGridViewCell) 940DataGridViewCell dataGridViewCell = (DataGridViewCell)Activator.CreateInstance(GetType())!; 1287ScaleHelper.GetIconResourceAsBitmap(typeof(DataGridViewCell), bitmapName, new Size(s_iconsWidth, s_iconsHeight));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (5)
18private DataGridViewCell? _owner; 24public DataGridViewCellAccessibleObject(DataGridViewCell? owner) 68DataGridViewCell dataGridViewCell = _owner; 91public DataGridViewCell? Owner 267DataGridViewCell dataGridViewCell = _owner;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCancelEventArgs.cs (1)
10internal DataGridViewCellCancelEventArgs(DataGridViewCell dataGridViewCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (24)
10/// Represents a collection of <see cref="DataGridViewCell"/> objects in the <see cref="DataGridView"/> 17private readonly List<DataGridViewCell> _items = []; 20int IList.Add(object? value) => Add((DataGridViewCell)value!); 28void IList.Insert(int index, object? value) => Insert(index, (DataGridViewCell)value!); 30void IList.Remove(object? value) => Remove((DataGridViewCell)value!); 41set { this[index] = (DataGridViewCell)value!; } 65public DataGridViewCell this[int index] 70DataGridViewCell dataGridViewCell = value.OrThrowIfNull(); 84DataGridViewCell oldDataGridViewCell = _items[index]; 113public DataGridViewCell this[string columnName] 154/// Adds a <see cref="DataGridViewCell"/> to this collection. 156public virtual int Add(DataGridViewCell dataGridViewCell) 171internal int AddInternal(DataGridViewCell dataGridViewCell) 188public virtual void AddRange(params DataGridViewCell[] dataGridViewCells) 197foreach (DataGridViewCell dataGridViewCell in dataGridViewCells) 224foreach (DataGridViewCell dataGridViewCell in dataGridViewCells) 240foreach (DataGridViewCell dataGridViewCell in _items) 249public void CopyTo(DataGridViewCell[] array, int index) 257public virtual bool Contains(DataGridViewCell dataGridViewCell) 263public int IndexOf(DataGridViewCell dataGridViewCell) => _items.IndexOf(dataGridViewCell); 265public virtual void Insert(int index, DataGridViewCell dataGridViewCell) 284internal void InsertInternal(int index, DataGridViewCell dataGridViewCell) 303public virtual void Remove(DataGridViewCell cell) 343DataGridViewCell dataGridViewCell = _items[index];
System\Windows\Forms\Controls\DataGridView\DataGridViewCellConverter.cs (1)
28if (destinationType == typeof(InstanceDescriptor) && value is DataGridViewCell cell)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellEventArgs.cs (1)
8internal DataGridViewCellEventArgs(DataGridViewCell dataGridViewCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellLinkedList.cs (6)
9/// Represents a linked list of <see cref="DataGridViewCell"/> objects 25public DataGridViewCell this[int index] 61public DataGridViewCell HeadCell 70public void Add(DataGridViewCell dataGridViewCell) 96public bool Contains(DataGridViewCell dataGridViewCell) 117public bool Remove(DataGridViewCell dataGridViewCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellLinkedListElement.cs (3)
11private readonly DataGridViewCell _dataGridViewCell; 13public DataGridViewCellLinkedListElement(DataGridViewCell dataGridViewCell) 19public DataGridViewCell DataGridViewCell => _dataGridViewCell;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStateChangedEventArgs.cs (2)
8public DataGridViewCellStateChangedEventArgs(DataGridViewCell dataGridViewCell, DataGridViewElementStates stateChanged) 14public DataGridViewCell Cell { get; }
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (1)
15public DataGridViewCheckBoxCellAccessibleObject(DataGridViewCell? owner) : base(owner)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
31public override DataGridViewCell? CellTemplate
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (3)
49public DataGridViewColumn(DataGridViewCell? cellTemplate) 157public virtual DataGridViewCell? CellTemplate { get; set; } 829dataGridViewColumn.CellTemplate = (DataGridViewCell?)CellTemplate?.Clone();
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.DataGridViewComboBoxCellAccessibleObject.cs (1)
15public DataGridViewComboBoxCellAccessibleObject(DataGridViewCell? owner) : base(owner)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (1)
67public override DataGridViewCell? CellTemplate
System\Windows\Forms\Controls\DataGridView\DataGridViewElement.cs (1)
26GetType() == typeof(DataGridViewRow) || GetType() == typeof(DataGridViewCell) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.DataGridViewImageCellAccessibleObject.cs (1)
13public DataGridViewImageCellAccessibleObject(DataGridViewCell? owner) : base(owner)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
38public override DataGridViewCell? CellTemplate
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject.cs (1)
13public DataGridViewLinkCellAccessibleObject(DataGridViewCell? owner) : base(owner)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (1)
78public override DataGridViewCell? CellTemplate
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (12)
1080DataGridViewCell[] cells = new DataGridViewCell[cellsCount]; 1083DataGridViewCell dataGridViewCell = rowTemplate.Cells[i]; 1084DataGridViewCell dgvcNew = (DataGridViewCell)dataGridViewCell.Clone(); 1117DataGridViewCell dgvcNew = (DataGridViewCell)dataGridViewColumn.CellTemplate.Clone(); 1154foreach (DataGridViewCell dataGridViewCell in Cells) 1312foreach (DataGridViewCell dataGridViewCell in Cells) 1510DataGridViewCell cell; 1750internal void SetReadOnlyCellCore(DataGridViewCell dataGridViewCell, bool readOnly) 1757foreach (DataGridViewCell dataGridViewCellTmp in Cells)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
86DataGridViewCell? currentCell = _owningDataGridViewRow.DataGridView?.CurrentCell;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (16)
143foreach (DataGridViewCell dataGridViewCell in newDataGridViewRow.Cells) 213foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 238foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 354foreach (DataGridViewCell dataGridViewCell in rowTemplate.Cells) 420foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 678foreach (DataGridViewCell dataGridViewCell in dgvcc) 750foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 1435foreach (DataGridViewCell dataGridViewCell in rowTemplate.Cells) 1522foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 1717foreach (DataGridViewCell dataGridViewCell in dgvcc) 1796foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 2181foreach (DataGridViewCell cell in row.Cells) 2246foreach (DataGridViewCell dataGridViewCell in cells) 2271foreach (DataGridViewCell dataGridViewCell in cells) 2405DataGridViewCell dataGridViewCell1 = dataGridViewRow1.Cells[columnIndex]; 2406DataGridViewCell dataGridViewCell2 = dataGridViewRow2.Cells[columnIndex];
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (10)
10/// Represents a collection of selected <see cref="DataGridViewCell"/> objects in the <see cref="DataGridView"/> 16private readonly List<DataGridViewCell> _items = []; 79public DataGridViewCell this[int index] 88/// Adds a <see cref="DataGridViewCell"/> to this collection. 90internal int Add(DataGridViewCell dataGridViewCell) 97/// Adds all the <see cref="DataGridViewCell"/> objects from the provided linked list to this collection. 102foreach (DataGridViewCell dataGridViewCell in dataGridViewCells) 118public bool Contains(DataGridViewCell dataGridViewCell) => ((IList)_items).Contains(dataGridViewCell); 120public void CopyTo(DataGridViewCell[] array, int index) => _items.CopyTo(array, index); 123public void Insert(int index, DataGridViewCell dataGridViewCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
72/// Adds a <see cref="DataGridViewCell"/> to this collection.
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (2)
10/// Represents a collection of selected <see cref="DataGridViewCell"/> objects in the <see cref="DataGridView"/> 61/// Adds a <see cref="DataGridViewCell"/> to this collection.
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.DataGridViewTextBoxCellAccessibleObject.cs (1)
13public DataGridViewTextBoxCellAccessibleObject(DataGridViewCell? owner) : base(owner)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
21public override DataGridViewCell? CellTemplate
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (7)
162DataGridViewFreeDimension freeDimension = DataGridViewCell.GetFreeDimensionFromConstraint(constraintSize); 176preferredWidth = DataGridViewCell.MeasureTextWidth(graphics, val, cellStyle.Font!, maxHeight, flags); 180preferredWidth = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.Font!, flags).Width; 237minHeightContent = DataGridViewCell.MeasureTextHeight(graphics, val, cellStyle.Font!, allowedWidth, flags); 241minHeightContent = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.Font!, flags).Height; 264preferredSize = DataGridViewCell.MeasureTextPreferredSize(graphics, val, cellStyle.Font!, 5.0F, flags); 268preferredSize = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.Font!, flags);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
348public DialogDataGridViewCellAccessibleObject(DataGridViewCell owner) : base(owner)
System.Windows.Forms.Tests (196)
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (1)
34DataGridViewCell cell = dataGridView.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (4)
209DataGridViewCell cell = dataGridView.Rows[0].Cells[0]; 393foreach (DataGridViewCell cell in row.Cells) 418foreach (DataGridViewCell cell in row.Cells) 443foreach (DataGridViewCell cell in row.Cells)
System\Windows\Forms\AccessibleObjects\DataGridViewButtonCellAccessibleObjectTests.cs (1)
65using DataGridViewCell cell = new DataGridViewButtonCell();
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (11)
98public void DataGridViewCellAccessibleObject_Ctor_DataGridViewCell(DataGridViewCell owner) 469Mock<DataGridViewCell> mockCell = new(MockBehavior.Strict); 480var mockObj = mockCell.Object; 502Mock<DataGridViewCell> mockCell = new(MockBehavior.Strict); 516var mockObj = mockCell.Object; 535Mock<DataGridViewCell> mockCell = new(MockBehavior.Strict); 552var mockObj = mockCell.Object; 574Mock<DataGridViewCell> mockCell = new(MockBehavior.Strict); 608Mock<DataGridViewCell> mockCell = new(MockBehavior.Strict); 656foreach (DataGridViewCell cell in row.Cells) 1496public new DataGridViewCell CurrentCell { get; set; }
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (6)
33var cell = control.Rows[0].Cells[0]; 77var cell = control.Rows[0].Cells[0]; 136var cell = control.Rows[0].Cells[0]; 160var cell = control.Rows[0].Cells[0]; 215var cell = control.Rows[0].Cells[0]; 259DataGridViewCell cell = dataGridView.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (5)
82DataGridViewCell currentCell = control.Rows[0].Cells[0]; 100DataGridViewCell currentCell = control.Rows[0].Cells[0]; 144DataGridViewCell selecetedCell1 = control.Rows[0].Cells[0]; 181DataGridViewCell selecetedCell1 = control.Rows[0].Cells[0]; 201DataGridViewCell selecetedCell1 = control.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (5)
85DataGridViewCell currentCell = control.Rows[0].Cells[0]; 103DataGridViewCell currentCell = control.Rows[0].Cells[0]; 150DataGridViewCell selecetedCell1 = row.Cells[0]; 189DataGridViewCell selecetedCell1 = row.Cells[0]; 210DataGridViewCell selecetedCell1 = row.Cells[0];
System\Windows\Forms\DataGridViewCellErrorTextNeededEventArgsTests.cs (1)
19DataGridViewCell cell = dataGridView.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewCellTests.cs (115)
150DataGridViewCell cell = control.Rows[0].Cells[0]; 168DataGridViewCell cell = control.Rows[0].Cells[0]; 205DataGridViewCell cell = control.Rows[0].Cells[0]; 286DataGridViewCell cell = control.Rows[0].Cells[0]; 308DataGridViewCell cell = control.Rows[0].Cells[0]; 444DataGridViewCell cell = row.Cells[0]; 486DataGridViewCell cell = row.Cells[0]; 519DataGridViewCell cell = row.Cells[0]; 580DataGridViewCell cell = row.Cells[0]; 645DataGridViewCell cell = control.Rows[0].Cells[0]; 660DataGridViewCell cell = control.Rows[0].Cells[0]; 676DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 761DataGridViewCell cell = control.Rows[0].Cells[0]; 775DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 788DataGridViewCell cell = control.Rows[0].Cells[0]; 820DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 849DataGridViewCell cell = control.Rows[0].Cells[0]; 885DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1014DataGridViewCell cell = control.Rows[0].Cells[0]; 1041DataGridViewCell cell = control.Rows[0].Cells[0]; 1069DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1096DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1126DataGridViewCell cell = control.Rows[0].Cells[0]; 1169DataGridViewCell cell = control.Rows[0].Cells[0]; 1209DataGridViewCell cell = control.Rows[0].Cells[0]; 1293DataGridViewCell cell = control.Rows[0].Cells[0]; 1308DataGridViewCell cell = control.Rows[0].Cells[0]; 1324DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1385DataGridViewCell cell = row.Cells[0]; 1403DataGridViewCell cell = row.Cells[0]; 1472DataGridViewCell cell = control.Rows[0].Cells[0]; 1490DataGridViewCell cell = row.Cells[0]; 1504DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1561DataGridViewCell cell = control.Rows[0].Cells[0]; 1575DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1630DataGridViewCell cell = row.Cells[0]; 1654DataGridViewCell cell = row.Cells[0]; 1789DataGridViewCell cell = row.Cells[0]; 1835DataGridViewCell cell = row.Cells[0]; 1886DataGridViewCell cell1 = row.Cells[0]; 1887DataGridViewCell cell2 = row.Cells[1]; 1923DataGridViewCell cell = control.Rows[0].Cells[0]; 1968DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2024DataGridViewCell cell = row.Cells[0]; 2042DataGridViewCell cell = row.Cells[0]; 2087DataGridViewCell cell = row.Cells[0]; 2105DataGridViewCell cell = row.Cells[0]; 2158DataGridViewCell cell = control.Rows[0].Cells[0]; 2189DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2206DataGridViewCell cell = control.Rows[0].Cells[0]; 2384DataGridViewCell cell = control.Rows[0].Cells[0]; 2411DataGridViewCell cell = control.Rows[0].Cells[0]; 2434DataGridViewCell cell = control.Rows[0].Cells[0]; 2558DataGridViewCell cell = control.Rows[0].Cells[0]; 2572DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2688DataGridViewCell cell = control.Rows[0].Cells[0]; 2711DataGridViewCell cell = control.Rows[0].Cells[0]; 2735DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2758DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2805DataGridViewCell cell = control.Rows[0].Cells[0]; 2941DataGridViewCell cell = control.Rows[0].Cells[0]; 2966DataGridViewCell cell = control.Rows[0].Cells[0]; 3043DataGridViewCell cell = row.Cells[0]; 3062DataGridViewCell cell = row.Cells[0]; 3746DataGridViewCell cell = control.Rows[0].Cells[0]; 3763DataGridViewCell cell = control.Rows[0].Cells[0]; 3781DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4261DataGridViewCell cell = control.Rows[0].Cells[0]; 4284DataGridViewCell cell = control.Rows[0].Cells[0]; 4304DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4322DataGridViewCell cell = control.Rows[0].Cells[0]; 4359DataGridViewCell cell = control.Rows[0].Cells[0]; 4395DataGridViewCell cell = control.Rows[0].Cells[0]; 4412DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4461DataGridViewCell cell = control.Rows[0].Cells[0]; 4510DataGridViewCell cell = row.Cells[0]; 4532DataGridViewCell cell = control.Rows[0].Cells[0]; 4592DataGridViewCell cell = row.Cells[0]; 4614DataGridViewCell cell = row.Cells[0]; 4628DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4676DataGridViewCell cell = control.Rows[0].Cells[0]; 4693DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4742DataGridViewCell cell = control.Rows[0].Cells[0]; 4757var cell = dataGridView.Rows[0].Cells[0]; 5256int height = DataGridViewCell.MeasureTextHeight(graphics, text, SystemFonts.DefaultFont, 10, TextFormatFlags.Default); 5259height = DataGridViewCell.MeasureTextHeight(graphics, text, SystemFonts.DefaultFont, 10, TextFormatFlags.Default, out bool widthTruncated); 5271int height = DataGridViewCell.MeasureTextHeight(graphics, text, SystemFonts.DefaultFont, 20, TextFormatFlags.Default); 5274height = DataGridViewCell.MeasureTextHeight(graphics, text, SystemFonts.DefaultFont, 20, TextFormatFlags.Default, out bool widthTruncated); 5283Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextHeight(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default)); 5284Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextHeight(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default, out widthTruncated)); 5294Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextHeight(graphics, "text", null, 10, TextFormatFlags.Default)); 5295Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextHeight(graphics, "text", null, 10, TextFormatFlags.Default, out widthTruncated)); 5307Assert.Throws<ArgumentOutOfRangeException>("maxWidth", () => DataGridViewCell.MeasureTextHeight(graphics, "text", SystemFonts.DefaultFont, maxWidth, TextFormatFlags.Default)); 5308Assert.Throws<ArgumentOutOfRangeException>("maxWidth", () => DataGridViewCell.MeasureTextHeight(graphics, "text", SystemFonts.DefaultFont, maxWidth, TextFormatFlags.Default, out widthTruncated)); 5319Assert.Throws<InvalidEnumArgumentException>("flags", () => DataGridViewCell.MeasureTextHeight(graphics, "text", SystemFonts.DefaultFont, 10, flags)); 5320Assert.Throws<InvalidEnumArgumentException>("flags", () => DataGridViewCell.MeasureTextHeight(graphics, "text", SystemFonts.DefaultFont, 10, flags, out widthTruncated)); 5330Assert.Equal(Size.Empty, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, TextFormatFlags.Default)); 5344Assert.NotEqual(Size.Empty, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, flags)); 5350Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextPreferredSize(null, "text", SystemFonts.DefaultFont, 0.2f, TextFormatFlags.Default)); 5358Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextPreferredSize(graphics, "text", null, 0.2f, TextFormatFlags.Default)); 5368Assert.Throws<ArgumentOutOfRangeException>("maxRatio", () => DataGridViewCell.MeasureTextPreferredSize(graphics, "text", SystemFonts.DefaultFont, maxRatio, TextFormatFlags.Default)); 5377Assert.Throws<InvalidEnumArgumentException>("flags", () => DataGridViewCell.MeasureTextPreferredSize(graphics, "text", SystemFonts.DefaultFont, 0.2f, flags)); 5386Assert.Equal(Size.Empty, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, TextFormatFlags.Default)); 5400Assert.NotEqual(Size.Empty, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, flags)); 5406Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextSize(null, "text", SystemFonts.DefaultFont, TextFormatFlags.Default)); 5414Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextSize(graphics, "text", null, TextFormatFlags.Default)); 5423Assert.Throws<InvalidEnumArgumentException>("flags", () => DataGridViewCell.MeasureTextSize(graphics, "text", SystemFonts.DefaultFont, flags)); 5432Assert.Equal(0, DataGridViewCell.MeasureTextWidth(graphics, text, SystemFonts.DefaultFont, 10, TextFormatFlags.Default)); 5446Assert.NotEqual(0, DataGridViewCell.MeasureTextWidth(graphics, text, SystemFonts.DefaultFont, 10, flags)); 5452Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextWidth(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default)); 5460Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextWidth(graphics, "text", null, 10, TextFormatFlags.Default)); 5470Assert.Throws<ArgumentOutOfRangeException>("maxHeight", () => DataGridViewCell.MeasureTextWidth(graphics, "text", SystemFonts.DefaultFont, maxHeight, TextFormatFlags.Default)); 5479Assert.Throws<InvalidEnumArgumentException>("flags", () => DataGridViewCell.MeasureTextWidth(graphics, "text", SystemFonts.DefaultFont, 10, flags)); 6191yield return new object[] { typeof(DataGridViewCell), typeof(DataGridViewCellTests), new DataGridViewCellTests(), new DataGridViewCellStyle(), null, null }; 6421DataGridViewCell cell = control.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewColumnTests.cs (3)
64public void DataGridViewColumn_Ctor_DataGridViewCell(DataGridViewCell cellTemplate) 504public void DataGridViewColumn_CellTemplate_Set_GetReturnsExpected(DataGridViewCell value) 1821public SubDataGridViewColumn(DataGridViewCell cellTemplate) : base(cellTemplate)
System\Windows\Forms\DataGridViewElementTests.cs (3)
38type == typeof(DataGridViewBand) || type == typeof(DataGridViewCell) || 39type.IsSubclassOf(typeof(DataGridViewBand)) || type.IsSubclassOf(typeof(DataGridViewCell)))) 372type == typeof(DataGridViewRow) || type == typeof(DataGridViewCell) || type == typeof(DataGridViewButtonCell) ||
System\Windows\Forms\DataGridViewHeaderCellTests.cs (34)
132DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 253DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 294DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 432DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 505DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 541DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 630DataGridViewCell cell = row.Cells[0]; 714DataGridViewCell cell = row.Cells[0]; 772DataGridViewCell cell = control.Rows[0].Cells[0]; 842DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 942DataGridViewCell cell = row.Cells[0]; 1060DataGridViewCell cell = row.Cells[0]; 1123DataGridViewCell cell = row.Cells[0]; 1199DataGridViewCell cell = row.Cells[0]; 1259DataGridViewCell cell = control.Rows[0].Cells[0]; 1331DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1381DataGridViewCell cell = control.Rows[0].Cells[0]; 1615DataGridViewCell cell = control.Rows[0].Cells[0]; 1642DataGridViewCell cell = control.Rows[0].Cells[0]; 1914DataGridViewCell cell = row.Cells[0]; 2012DataGridViewCell cell = row.Cells[0]; 2282DataGridViewCell cell = control.Rows[0].Cells[0]; 2305DataGridViewCell cell = control.Rows[0].Cells[0]; 2363DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2381DataGridViewCell cell = control.Rows[0].Cells[0]; 2418DataGridViewCell cell = control.Rows[0].Cells[0]; 2513DataGridViewCell cell = control.Rows[0].Cells[0]; 2562DataGridViewCell cell = row.Cells[0]; 2729DataGridViewCell cell = control.Rows[0].Cells[0]; 2789DataGridViewCell cell = row.Cells[0]; 3004DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 3054DataGridViewCell cell = control.Rows[0].Cells[0]; 3120DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4660DataGridViewCell cell = control.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewRowTests.cs (5)
4076Assert.Null(Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 4106Assert.Equal(expectedValue, Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 5690Assert.Equal(expectedValue, Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 5706Assert.Equal(expectedValue, Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 5715Assert.Null(Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value);
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (2)
128public void DataGridViewSelectedCellCollection_Contains_InvokeEmpty_ReturnsFalse(DataGridViewCell dataGridViewCell) 175public void DataGridViewSelectedCellCollection_Insert_Invoke_ThrowsNotSupportedException(int index, DataGridViewCell dataGridViewCell)