3 writes to dataConnection
System.Windows.Forms (3)
winforms\Managed\System\WinForms\DataGridView.cs (3)
2382
this.
dataConnection
= new DataGridViewDataConnection(this);
2435
this.
dataConnection
= new DataGridViewDataConnection(this);
2448
this.
dataConnection
= null;
69 references to dataConnection
System.Windows.Forms (69)
winforms\Managed\System\WinForms\DataGridView.cs (14)
737
this.
dataConnection
.ResetCachedAllowUserToAddRowsInternal();
754
return this.AllowUserToAddRows && this.
dataConnection
.AllowAdd;
808
return this.AllowUserToDeleteRows && this.
dataConnection
.AllowRemove;
2351
return this.
dataConnection
;
2366
if (this.
dataConnection
== null)
2372
return this.
dataConnection
.DataMember;
2380
if (this.
dataConnection
== null)
2384
this.
dataConnection
.SetDataConnection(this.DataSource, value);
2419
if (this.
dataConnection
== null)
2425
return this.
dataConnection
.DataSource;
2433
if (this.
dataConnection
== null)
2436
this.
dataConnection
.SetDataConnection(value, this.DataMember);
2440
if (this.
dataConnection
.ShouldChangeDataMember(value))
2445
this.
dataConnection
.SetDataConnection(value, this.DataMember);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (55)
1532
if (this.
dataConnection
!= null && this.
dataConnection
.BoundColumnIndex(dataGridViewCols[i].DataPropertyName) != -1)
3246
this.
dataConnection
.CancelRowEdit(true /*restoreRow*/, this.dataGridViewState1[DATAGRIDVIEWSTATE1_newRowEdited]/*addNewFinished*/);
3247
if (this.
dataConnection
.List.Count == 0)
3269
this.
dataConnection
.OnNewRowNeeded();
3372
if (this.
dataConnection
== null)
3384
if (this.
dataConnection
.ProcessingMetaDataChanges)
3390
if (this.
dataConnection
.CancellingRowEdit && !this.
dataConnection
.RestoreRow)
3396
if (this.
dataConnection
.CurrencyManager.Count <= this.ptCurrentCell.Y)
3402
if (this.
dataConnection
.PositionChangingOutsideDataGridView)
3410
if (this.
dataConnection
.ListWasReset)
3640
this.
dataConnection
!= null &&
3641
!this.
dataConnection
.AllowEdit)
5665
if (this.
dataConnection
!= null)
5667
this.
dataConnection
.Dispose();
11658
if (this.
dataConnection
!= null)
11663
this.
dataConnection
.SetDataConnection(this.DataSource, this.DataMember);
11683
if (this.
dataConnection
.CurrencyManager != null)
14128
(this.
dataConnection
.List is IBindingList) &&
14129
((IBindingList) this.
dataConnection
.List).SupportsSorting &&
15273
Debug.Assert(this.
dataConnection
!= null);
15274
Debug.Assert(this.
dataConnection
.CurrencyManager != null);
15275
Debug.Assert(this.
dataConnection
.CurrencyManager.Position == this.ptCurrentCell.Y);
15374
if (this.
dataConnection
!= null && this.
dataConnection
.CurrencyManager != null)
15392
if (this.
dataConnection
!= null && this.
dataConnection
.CurrencyManager != null)
18133
if (this.
dataConnection
!= null && this.
dataConnection
.InterestedInRowEvents)
18135
this.
dataConnection
.OnNewRowNeeded();
18170
if (this.
dataConnection
!= null &&
18171
this.
dataConnection
.InterestedInRowEvents &&
18172
!this.
dataConnection
.PositionChangingOutsideDataGridView &&
18173
!this.
dataConnection
.ListWasReset &&
18174
(!calledAddNewOnTheDataConnection || this.
dataConnection
.List.Count > 0))
18176
this.
dataConnection
.OnRowEnter(dgvce);
19262
if (this.
dataConnection
!= null &&
19263
this.
dataConnection
.InterestedInRowEvents &&
19264
!this.
dataConnection
.PositionChangingOutsideDataGridView &&
19265
!this.
dataConnection
.ListWasReset)
19267
this.
dataConnection
.OnRowValidating(dgvcce);
25591
if (this.
dataConnection
!= null)
25593
boundColumns = this.
dataConnection
.GetCollectionOfBoundDataGridViewColumns();
25618
this.
dataConnection
.ApplySortingInformationFromBackEnd();
25694
if (this.
dataConnection
!= null && this.Columns.Count > 0)
25696
IList list = this.
dataConnection
.List;
25700
bool oldDoNotChangePositionInTheCurrencyManager = this.
dataConnection
.DoNotChangePositionInTheCurrencyManager;
25710
this.
dataConnection
.DoNotChangePositionInTheCurrencyManager = true;
25731
this.
dataConnection
.DoNotChangePositionInTheCurrencyManager = oldDoNotChangePositionInTheCurrencyManager;
25736
dataConnection
.MatchCurrencyManagerPosition(scrollIntoView, true /*clearSelection*/);
26851
(this.
dataConnection
== null || !this.
dataConnection
.ProcessingListChangedEvent)) // underlying data changing.
28212
IBindingList ibl = this.
dataConnection
.List as IBindingList;
28291
this.
dataConnection
.Sort(dataGridViewColumn, direction);