3 types derived from DataGridViewCellEventArgs
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellContextMenuStripNeededEventArgs.cs (1)
6public class DataGridViewCellContextMenuStripNeededEventArgs : DataGridViewCellEventArgs
System\Windows\Forms\Controls\DataGridView\DataGridViewCellErrorTextNeededEventArgs.cs (1)
6public class DataGridViewCellErrorTextNeededEventArgs : DataGridViewCellEventArgs
System\Windows\Forms\Controls\DataGridView\DataGridViewCellToolTipTextNeededEventArgs.cs (1)
6public class DataGridViewCellToolTipTextNeededEventArgs : DataGridViewCellEventArgs
52 instantiations of DataGridViewCellEventArgs
System.Windows.Forms (34)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (21)
5816OnCellDoubleClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.RowIndex)); 5877OnCellClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.RowIndex)); 5885OnCellDoubleClick(new DataGridViewCellEventArgs(dgvcme.ColumnIndex, dgvcme.RowIndex)); 6268DataGridViewCellEventArgs dgvce = new(curColIndex, curRowIndex); 11672DataGridViewCellEventArgs dgvce = new(dataGridViewCell); 11723OnCellEnter(new DataGridViewCellEventArgs(columnIndex, rowIndex)); 11758DataGridViewCellEventArgs dgvce = new(dataGridViewCell); 11811OnCellLeave(new DataGridViewCellEventArgs(columnIndex, rowIndex)); 12842DataGridViewCellEventArgs dgvce = new(dataGridViewCell); 13022DataGridViewCellEventArgs dgvce = new(dataGridViewCell); 13047OnCellValidated(new DataGridViewCellEventArgs(columnIndex, rowIndex)); 14549DataGridViewCellEventArgs dgvce = new(columnIndex, rowIndex); 14949OnCellDoubleClick(new DataGridViewCellEventArgs(hti._col, hti._row)); 15892OnCellClick(new DataGridViewCellEventArgs(hti._col, hti._row)); 16162OnCellMouseLeave(new(_ptMouseEnteredCell.X, _ptMouseEnteredCell.Y)); 17706DataGridViewCellEventArgs dgvce = new(columnIndex, rowIndex); 18322DataGridViewCellEventArgs dgvce = new(columnIndex, rowIndex); 18769DataGridViewCellEventArgs dgvce = new(columnIndex, rowIndex); 29169dgvce = new DataGridViewCellEventArgs(_ptMouseEnteredCell.X, _ptMouseEnteredCell.Y); 29173dgvce = new DataGridViewCellEventArgs(htiToUse._col, htiToUse._row); 29196DataGridViewCellEventArgs dgvce = new(_ptMouseEnteredCell.X, _ptMouseEnteredCell.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
480RaiseCellClick(new DataGridViewCellEventArgs(ColumnIndex, rowIndex)); 485RaiseCellContentClick(new DataGridViewCellEventArgs(ColumnIndex, rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject.cs (2)
46dataGridView.OnCellClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex)); 47dataGridView.OnCellContentClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3947RaiseCellValueChanged(new DataGridViewCellEventArgs(ColumnIndex, rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
831RaiseCellClick(new DataGridViewCellEventArgs(ColumnIndex, rowIndex)); 836RaiseCellContentClick(new DataGridViewCellEventArgs(ColumnIndex, rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
1196RaiseCellValueChanged(new DataGridViewCellEventArgs(ColumnIndex, -1));
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.DataGridViewImageCellAccessibleObject.cs (1)
51dataGridView.OnCellContentClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (2)
730RaiseCellClick(new DataGridViewCellEventArgs(ColumnIndex, rowIndex)); 735RaiseCellContentClick(new DataGridViewCellEventArgs(ColumnIndex, rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject.cs (1)
44dataGridView.OnCellContentClickInternal(new DataGridViewCellEventArgs(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
1064RaiseCellValueChanged(new DataGridViewCellEventArgs(-1, rowIndex));
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataGridViewCellEventArgsTests.cs (3)
17DataGridViewCellEventArgs e = new(columnIndex, rowIndex); 25Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellEventArgs(-2, 0)); 31Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellEventArgs(0, -2));
System\Windows\Forms\DataGridViewCellTests.cs (6)
5710yield return new object[] { new DataGridViewCellEventArgs(-1, -1) }; 5711yield return new object[] { new DataGridViewCellEventArgs(0, -1) }; 5712yield return new object[] { new DataGridViewCellEventArgs(-1, 0) }; 5713yield return new object[] { new DataGridViewCellEventArgs(0, 0) }; 5714yield return new object[] { new DataGridViewCellEventArgs(1, 0) }; 5715yield return new object[] { new DataGridViewCellEventArgs(0, 1) };
System\Windows\Forms\DataGridViewElementTests.cs (5)
32yield return new object[] { new DataGridViewCellEventArgs(1, 2) }; 56DataGridViewCellEventArgs eventArgs = new(0, 0); 108DataGridViewCellEventArgs eventArgs = new(0, 0); 160DataGridViewCellEventArgs eventArgs = new(0, 0); 212DataGridViewCellEventArgs eventArgs = new(0, 0);
System\Windows\Forms\DataGridViewTests.cs (4)
3611DataGridViewCellEventArgs args = new(0, 0); 3616args = new(0, 1); 3717DataGridViewCellEventArgs cellEventArgs = new(0, 0); 3722cellEventArgs = new(0, 1);
94 references to DataGridViewCellEventArgs
System.Windows.Forms (61)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
1338internal void OnRowEnter(DataGridViewCellEventArgs e)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (33)
6268DataGridViewCellEventArgs dgvce = new(curColIndex, curRowIndex); 11536internal void OnCellClickInternal(DataGridViewCellEventArgs e) 11541protected virtual void OnCellClick(DataGridViewCellEventArgs e) 11620internal void OnCellContentClickInternal(DataGridViewCellEventArgs e) 11625protected virtual void OnCellContentClick(DataGridViewCellEventArgs e) 11645internal void OnCellContentDoubleClickInternal(DataGridViewCellEventArgs e) 11650protected virtual void OnCellContentDoubleClick(DataGridViewCellEventArgs e) 11672DataGridViewCellEventArgs dgvce = new(dataGridViewCell); 11676protected virtual void OnCellContextMenuStripChanged(DataGridViewCellEventArgs e) 11695protected virtual void OnCellDoubleClick(DataGridViewCellEventArgs e) 11715protected virtual void OnCellEndEdit(DataGridViewCellEventArgs e) 11738protected virtual void OnCellEnter(DataGridViewCellEventArgs e) 11758DataGridViewCellEventArgs dgvce = new(dataGridViewCell); 11762protected virtual void OnCellErrorTextChanged(DataGridViewCellEventArgs e) 11826protected virtual void OnCellLeave(DataGridViewCellEventArgs e) 12605protected virtual void OnCellMouseEnter(DataGridViewCellEventArgs e) 12628protected virtual void OnCellMouseLeave(DataGridViewCellEventArgs e) 12842DataGridViewCellEventArgs dgvce = new(dataGridViewCell); 12846protected virtual void OnCellStyleChanged(DataGridViewCellEventArgs e) 13022DataGridViewCellEventArgs dgvce = new(dataGridViewCell); 13026protected virtual void OnCellToolTipTextChanged(DataGridViewCellEventArgs e) 13062protected virtual void OnCellValidated(DataGridViewCellEventArgs e) 13133internal void OnCellValueChangedInternal(DataGridViewCellEventArgs e) 13139protected virtual void OnCellValueChanged(DataGridViewCellEventArgs e) 14549DataGridViewCellEventArgs dgvce = new(columnIndex, rowIndex); 17706DataGridViewCellEventArgs dgvce = new(columnIndex, rowIndex); 17732protected virtual void OnRowEnter(DataGridViewCellEventArgs e) 18322DataGridViewCellEventArgs dgvce = new(columnIndex, rowIndex); 18339protected virtual void OnRowLeave(DataGridViewCellEventArgs e) 18769DataGridViewCellEventArgs dgvce = new(columnIndex, rowIndex); 18785protected virtual void OnRowValidated(DataGridViewCellEventArgs e) 29163DataGridViewCellEventArgs dgvce; 29196DataGridViewCellEventArgs dgvce = new(_ptMouseEnteredCell.X, _ptMouseEnteredCell.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (16)
898protected virtual bool ClickUnsharesRow(DataGridViewCellEventArgs e) => false; 900internal bool ClickUnsharesRowInternal(DataGridViewCellEventArgs e) => ClickUnsharesRow(e); 1033protected virtual bool ContentClickUnsharesRow(DataGridViewCellEventArgs e) => false; 1035internal bool ContentClickUnsharesRowInternal(DataGridViewCellEventArgs e) => ContentClickUnsharesRow(e); 1037protected virtual bool ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs e) => false; 1039internal bool ContentDoubleClickUnsharesRowInternal(DataGridViewCellEventArgs e) => ContentDoubleClickUnsharesRow(e); 1150protected virtual bool DoubleClickUnsharesRow(DataGridViewCellEventArgs e) => false; 1152internal bool DoubleClickUnsharesRowInternal(DataGridViewCellEventArgs e) => DoubleClickUnsharesRow(e); 2823protected virtual void OnClick(DataGridViewCellEventArgs e) 2827internal void OnClickInternal(DataGridViewCellEventArgs e) => OnClick(e); 2846protected virtual void OnContentClick(DataGridViewCellEventArgs e) 2850internal void OnContentClickInternal(DataGridViewCellEventArgs e) => 2853protected virtual void OnContentDoubleClick(DataGridViewCellEventArgs e) 2857internal void OnContentDoubleClickInternal(DataGridViewCellEventArgs e) => 2860protected virtual void OnDoubleClick(DataGridViewCellEventArgs e) 2864internal void OnDoubleClickInternal(DataGridViewCellEventArgs e) =>
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (6)
429private bool CommonContentClickUnsharesRow(DataGridViewCellEventArgs e) 438protected override bool ContentClickUnsharesRow(DataGridViewCellEventArgs e) => CommonContentClickUnsharesRow(e); 440protected override bool ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs e) => CommonContentClickUnsharesRow(e); 781private void OnCommonContentClick(DataGridViewCellEventArgs e) 801protected override void OnContentClick(DataGridViewCellEventArgs e) => OnCommonContentClick(e); 803protected override void OnContentDoubleClick(DataGridViewCellEventArgs e) => OnCommonContentClick(e);
System\Windows\Forms\Controls\DataGridView\DataGridViewElement.cs (4)
78protected void RaiseCellClick(DataGridViewCellEventArgs e) 83protected void RaiseCellContentClick(DataGridViewCellEventArgs e) 88protected void RaiseCellContentDoubleClick(DataGridViewCellEventArgs e) 93protected void RaiseCellValueChanged(DataGridViewCellEventArgs e)
System\Windows\Forms\Controls\DataGridView\DataGridViewEventHandlers.cs (1)
20public delegate void DataGridViewCellEventHandler(object? sender, DataGridViewCellEventArgs e);
System.Windows.Forms.Tests (32)
System\Windows\Forms\DataGridViewCellEventArgsTests.cs (1)
17DataGridViewCellEventArgs e = new(columnIndex, rowIndex);
System\Windows\Forms\DataGridViewCellTests.cs (11)
5720public void DataGridViewCell_OnContentClick_Invoke_Nop(DataGridViewCellEventArgs e) 5728public void DataGridViewCell_OnContentDoubleClick_Invoke_Nop(DataGridViewCellEventArgs e) 5756public void DataGridViewCell_OnDoubleClick_Invoke_Nop(DataGridViewCellEventArgs e) 6583public new bool ClickUnsharesRow(DataGridViewCellEventArgs e) => base.ClickUnsharesRow(e); 6585public new bool ContentClickUnsharesRow(DataGridViewCellEventArgs e) => base.ContentClickUnsharesRow(e); 6587public new bool ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs e) => base.ContentDoubleClickUnsharesRow(e); 6593public new bool DoubleClickUnsharesRow(DataGridViewCellEventArgs e) => base.DoubleClickUnsharesRow(e); 6643public new void OnClick(DataGridViewCellEventArgs e) => base.OnClick(e); 6645public new void OnContentClick(DataGridViewCellEventArgs e) => base.OnContentClick(e); 6647public new void OnContentDoubleClick(DataGridViewCellEventArgs e) => base.OnContentDoubleClick(e); 6651public new void OnDoubleClick(DataGridViewCellEventArgs e) => base.OnDoubleClick(e);
System\Windows\Forms\DataGridViewElementTests.cs (16)
47public void DataGridViewElement_RaiseCellClick_Invoke_Nop(DataGridViewCellEventArgs eventArgs) 56DataGridViewCellEventArgs eventArgs = new(0, 0); 99public void DataGridViewElement_RaiseCellContentClick_Invoke_Nop(DataGridViewCellEventArgs eventArgs) 108DataGridViewCellEventArgs eventArgs = new(0, 0); 151public void DataGridViewElement_RaiseCellContentDoubleClick_Invoke_Nop(DataGridViewCellEventArgs eventArgs) 160DataGridViewCellEventArgs eventArgs = new(0, 0); 203public void DataGridViewElement_RaiseCellValueChanged_Invoke_Nop(DataGridViewCellEventArgs eventArgs) 212DataGridViewCellEventArgs eventArgs = new(0, 0); 384public new void RaiseCellClick(DataGridViewCellEventArgs e) => base.RaiseCellClick(e); 386public new void RaiseCellContentClick(DataGridViewCellEventArgs e) => base.RaiseCellContentClick(e); 388public new void RaiseCellContentDoubleClick(DataGridViewCellEventArgs e) => base.RaiseCellContentDoubleClick(e); 390public new void RaiseCellValueChanged(DataGridViewCellEventArgs e) => base.RaiseCellValueChanged(e); 401public new void RaiseCellClick(DataGridViewCellEventArgs e) => base.RaiseCellClick(e); 403public new void RaiseCellContentClick(DataGridViewCellEventArgs e) => base.RaiseCellContentClick(e); 405public new void RaiseCellContentDoubleClick(DataGridViewCellEventArgs e) => base.RaiseCellContentDoubleClick(e); 407public new void RaiseCellValueChanged(DataGridViewCellEventArgs e) => base.RaiseCellValueChanged(e);
System\Windows\Forms\DataGridViewTests.cs (4)
2903public new void OnCellDoubleClick(DataGridViewCellEventArgs e) => base.OnCellDoubleClick(e); 2907public new void OnCellLeave(DataGridViewCellEventArgs e) => base.OnCellLeave(e); 3611DataGridViewCellEventArgs args = new(0, 0); 3717DataGridViewCellEventArgs cellEventArgs = new(0, 0);
WinFormsControlsTest (1)
DataGridViewInVirtualModeTest.cs (1)
126private void dataGridView1_RowValidated(object sender, DataGridViewCellEventArgs e)