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