1 write to dataGridView1
WinFormsControlsTest (1)
DataGridViewInVirtualModeTest.Designer.cs (1)
34
this.
dataGridView1
= new System.Windows.Forms.DataGridView();
27 references to dataGridView1
WinFormsControlsTest (27)
DataGridViewInVirtualModeTest.cs (16)
37
dataGridView1
.CellValueNeeded += dataGridView1_CellValueNeeded;
38
dataGridView1
.CellValuePushed += dataGridView1_CellValuePushed;
39
dataGridView1
.NewRowNeeded += dataGridView1_NewRowNeeded;
40
dataGridView1
.RowValidated += dataGridView1_RowValidated;
41
dataGridView1
.RowDirtyStateNeeded += dataGridView1_RowDirtyStateNeeded;
42
dataGridView1
.CancelRowEdit += dataGridView1_CancelRowEdit;
43
dataGridView1
.UserDeletingRow += dataGridView1_UserDeletingRow;
51
dataGridView1
.RowCount = _customers.Count + 1; // Add 1 as a new edit row
57
if (e.RowIndex ==
dataGridView1
.RowCount - 1)
66
switch (
dataGridView1
.Columns[e.ColumnIndex].Name)
97
switch (
dataGridView1
.Columns[e.ColumnIndex].Name)
123
_rowInEdit =
dataGridView1
.Rows.Count - 1;
130
if (e.RowIndex >= _customers.Count && e.RowIndex !=
dataGridView1
.Rows.Count - 1)
144
else if (
dataGridView1
.ContainsFocus)
157
e.Response =
dataGridView1
.IsCurrentCellDirty;
163
if (_rowInEdit ==
dataGridView1
.Rows.Count - 2 && _rowInEdit == _customers.Count)
DataGridViewInVirtualModeTest.Designer.cs (11)
39
((System.ComponentModel.ISupportInitialize)(this.
dataGridView1
)).BeginInit();
44
this.
dataGridView1
.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
47
this.
dataGridView1
.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
48
this.
dataGridView1
.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
53
this.
dataGridView1
.Location = new System.Drawing.Point(0, 15);
54
this.
dataGridView1
.Name = "dataGridView1";
55
this.
dataGridView1
.Size = new System.Drawing.Size(492, 150);
56
this.
dataGridView1
.TabIndex = 5;
57
this.
dataGridView1
.VirtualMode = true;
86
this.Controls.Add(this.
dataGridView1
);
90
((System.ComponentModel.ISupportInitialize)(this.
dataGridView1
)).EndInit();