2 writes to listManager
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGrid.cs (2)
1594
this.
listManager
= (CurrencyManager) this.BindingContext[newDataSource, newDataMember];
1596
listManager
= null;
109 references to listManager
System.Windows.Forms (109)
winforms\Managed\System\WinForms\DataGrid.cs (109)
401
if (!value && this.
listManager
!= null) {
402
IList list = this.
listManager
.List;
701
return !(
listManager
== null || myGridTable == null);
1007
if (currentRowSaved !=
listManager
.Position) {
1059
Debug.Assert(ListManager.Position == currentRow ||
listManager
.Position == -1, "the listManager should be positioned at the last row");
1082
Debug.Assert(currentRow == ListManager.Position ||
listManager
.Position == -1, "the position in the list manager (" + ListManager.Position + ") is out of sync with the currentRow (" + currentRow + ")" + " and the exception is '" + errorMessage + "'");
1100
this.
listManager
.PositionChanged -= positionChangedHandler;
1101
this.
listManager
.CancelCurrentEdit();
1102
this.
listManager
.Position = newRow;
1103
this.
listManager
.PositionChanged += positionChangedHandler;
1132
Debug.Assert(currentRow == ListManager.Position ||
listManager
.Position == -1, "the position in the list manager is out of sync with the currentRow");
1541
if (
listManager
== null && this.BindingContext != null && this.DataSource != null)
1544
return
listManager
;
1583
if (this.
listManager
!= null)
1586
CurrencyManager oldListManager =
listManager
;
1602
listManagerChanged = (
listManager
!= oldListManager);
1605
if (
listManager
!= null) {
1608
policy.UpdatePolicy(this.
listManager
, this.ReadOnly);
1613
if (
listManager
== null)
1662
if (
listManager
!= null)
1670
DataGridTableStyle newGridTable = this.dataGridTables[
listManager
.GetListName()];
1678
currentRow =
listManager
.Position == -1 ? 0 :
listManager
.Position;
1727
return this.
listManager
== null ? - 1 : this.
listManager
.Position;
1736
if (this.
listManager
== null)
1740
this.
listManager
.Position = value;
2759
recreateRows |= policy.UpdatePolicy(this.
listManager
, value);
3020
CurrencyManager listManager = this.
listManager
;
3030
CurrencyManager listManager = this.
listManager
;
3093
Debug.Assert(
listManager
!= null, "Can't wire up to a null DataSource");
3094
listManager
.CurrentChanged += currentChangedHandler;
3095
listManager
.PositionChanged += positionChangedHandler;
3096
listManager
.ItemChanged += itemChangedHandler;
3097
listManager
.MetaDataChanged += metaDataChangedHandler;
3102
Debug.Assert(
listManager
!= null, "Can't un wire from a null DataSource");
3103
listManager
.CurrentChanged -= currentChangedHandler;
3104
listManager
.PositionChanged -= positionChangedHandler;
3105
listManager
.ItemChanged -= itemChangedHandler;
3106
listManager
.MetaDataChanged -= metaDataChangedHandler;
3133
listManager
.CancelCurrentEdit();
3138
currentRow = Math.Min(currentRow, this.
listManager
.Count);
3206
if (!this.myGridTable.AllowSorting && this.
listManager
!= null) {
3207
IList list = this.
listManager
.List;
3234
Debug.WriteLineIf(CompModSwitches.DataGridCursor.TraceVerbose, "DataGridCursor: DataSource_PositionChanged to " +
listManager
.Position.ToString(CultureInfo.InvariantCulture));
3239
if (this.DataGridRowsLength > this.
listManager
.Count + (policy.AllowAdd?1:0) && !gridState[GRIDSTATE_inDeleteRow]) {
3244
CurrentCell = new DataGridCell(
listManager
.Position, currentCol);
3258
if (this.
listManager
== null)
3260
for (int i = 0; i < this.
listManager
.Count; i++)
3262
object errObj = this.
listManager
[i];
3277
if (this.
listManager
== null)
3282
if (this.
listManager
.GetListName().Equals(tableStyle.MappingName)) {
3300
DataGridTableStyle newGridTable = this.dataGridTables[
listManager
.GetListName()];
3337
object errObj = this.
listManager
[ea.Index];
3676
listManager
.EndCurrentEdit();
3690
Debug.Assert(currentRow == ListManager.Position ||
listManager
.Position == -1, "the position in the list manager (" + ListManager.Position + ") is out of sync with the currentRow (" + currentRow + ")" + " and the exception is '" + errorMessage + "'");
3701
this.
listManager
.PositionChanged -= positionChangedHandler;
3702
this.
listManager
.CancelCurrentEdit();
3703
this.
listManager
.Position = currentRow;
3704
this.
listManager
.PositionChanged += positionChangedHandler;
3955
if (this.
listManager
!= null && !this.gridState[GRIDSTATE_editControlChanging]) {
3959
this.
listManager
.CancelCurrentEdit();
4017
if (
listManager
== null)
4212
if (
listManager
== null)
4320
if (
listManager
== null || myGridTable == null)
4369
if (
listManager
== null || myGridTable == null)
4719
if (
listManager
!= null) {
4721
listManager
.CancelCurrentEdit();
4726
if (checkHierarchy && this.
listManager
!= null && this.myGridTable != null) {
4756
CurrencyManager listManager = this.
listManager
;
5188
if (
listManager
.Count == 0)
6721
if (
listManager
== null || myGridTable == null) {
6871
listManager
.CancelCurrentEdit();
7008
this.
listManager
.EndCurrentEdit();
7029
this.
listManager
.Position = source.RowNumber;
7059
if (this.
listManager
.Position != this.currentRow) {
7060
this.currentRow =
listManager
.Position == -1 ? 0 :
listManager
.Position;
7108
PairTableStylesAndGridColumns(this.
listManager
, this.myGridTable, false);
7325
if (this.
listManager
!= null) {
7475
if (
listManager
!= null && DataGridRowsLength > 0 && localGridRows[currentRow].OnKeyPress(keyData)) {
7577
int currentRowsCount = this.
listManager
== null ? 0 : this.
listManager
.Count;
7609
if (this.
listManager
!= null && currentRowsCount == this.
listManager
.Count + rowsDeleted) {
7618
if (this.
listManager
!= null && currentRowsCount != this.
listManager
.Count + rowsDeleted) {
7659
if (
listManager
== null || myGridTable == null)
7729
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
7762
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
7770
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
7776
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
7807
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
7846
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
7859
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
8071
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
8074
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
8092
this.currentRow = this.
listManager
.Count == 0 ? 0 : this.
listManager
.Position;
8126
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
8129
Debug.Assert(ListManager.Position == CurrentCell.RowNumber ||
listManager
.Count == 0, "current row out of ssync with DataSource");
8253
if (this.
listManager
== null || myGridTable == null)
8813
if (this.
listManager
!= null)
8814
PairTableStylesAndGridColumns(this.
listManager
, this.myGridTable, forceColumnCreation);
8829
if (this.
listManager
== null)
8832
currentRow = this.
listManager
.Position == -1 ? 0 :
listManager
.Position;
9016
if (this.
listManager
!= null) {
9018
this.
listManager
.EndCurrentEdit();