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