7 writes to DisplayIndex
System.Windows.Forms (7)
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (1)
982
dataGridViewColumn.
DisplayIndex
= columnIndex;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (6)
1535
clonedColumns[clonedColumnsCount].
DisplayIndex
= dataGridViewCols[i].DisplayIndex;
5060
dataGridViewColumnClone.
DisplayIndex
= dataGridViewColumn.DisplayIndex;
5066
dataGridViewColumnClone.
DisplayIndex
= dataGridViewColumn.DisplayIndex;
6115
this.Columns[this.trackColumn].
DisplayIndex
= 0;
6119
this.Columns[this.trackColumn].
DisplayIndex
= this.Columns[previousColumnIndex].DisplayIndex + 1;
6123
this.Columns[this.trackColumn].
DisplayIndex
= this.Columns[previousColumnIndex].DisplayIndex;
66 references to DisplayIndex
System.Windows.Forms (66)
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (25)
333
if (dataGridViewColumn.
DisplayIndex
!= -1)
350
if (dataGridViewColumn.
DisplayIndex
< smallestDisplayIndex)
352
smallestDisplayIndex = dataGridViewColumn.
DisplayIndex
;
365
if (dataGridViewColumn.
DisplayIndex
== -1)
494
int displayIndex1 = ((DataGridViewColumn) this.items[columnIndex1]).
DisplayIndex
;
495
int displayIndex2 = ((DataGridViewColumn) this.items[columnIndex2]).
DisplayIndex
;
506
if (dataGridViewColumn.
DisplayIndex
== displayIndex)
514
if (dataGridViewColumn.
DisplayIndex
== displayIndex)
847
(dataGridViewColumn.
DisplayIndex
> dataGridViewColumnStart.
DisplayIndex
||
848
(dataGridViewColumn.
DisplayIndex
== dataGridViewColumnStart.
DisplayIndex
&&
851
if (dataGridViewColumn.
DisplayIndex
< displayIndexMin ||
852
(dataGridViewColumn.
DisplayIndex
== displayIndexMin &&
856
displayIndexMin = dataGridViewColumn.
DisplayIndex
;
919
(dataGridViewColumn.
DisplayIndex
< dataGridViewColumnStart.
DisplayIndex
||
920
(dataGridViewColumn.
DisplayIndex
== dataGridViewColumnStart.
DisplayIndex
&&
923
if (dataGridViewColumn.
DisplayIndex
> displayIndexMax ||
924
(dataGridViewColumn.
DisplayIndex
== displayIndexMax &&
928
displayIndexMax = dataGridViewColumn.
DisplayIndex
;
979
int originalDisplayIndex = dataGridViewColumn.
DisplayIndex
;
1299
return dataGridViewColumn1.
DisplayIndex
- dataGridViewColumn2.
DisplayIndex
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (41)
1535
clonedColumns[clonedColumnsCount].DisplayIndex = dataGridViewCols[i].
DisplayIndex
;
4943
Debug.Assert(dataGridViewColumn.
DisplayIndex
>= 0);
4952
if (dataGridViewColumnTmp.
DisplayIndex
> dataGridViewColumn.
DisplayIndex
)
4954
dataGridViewColumnTmp.DisplayIndexInternal = dataGridViewColumnTmp.
DisplayIndex
- 1;
4977
Debug.Assert(dataGridViewColumn.
DisplayIndex
>= 0);
4978
Debug.Assert(dataGridViewColumn.
DisplayIndex
< this.Columns.Count);
4987
if (dataGridViewColumnTmp != dataGridViewColumn && dataGridViewColumnTmp.
DisplayIndex
>= dataGridViewColumn.
DisplayIndex
)
4989
dataGridViewColumnTmp.DisplayIndexInternal = dataGridViewColumnTmp.
DisplayIndex
+ 1;
5013
if (dataGridViewColumn.
DisplayIndex
== -1 || dataGridViewColumn.
DisplayIndex
> this.Columns.Count)
5019
Debug.Assert(dataGridViewColumn.
DisplayIndex
>= 0 && dataGridViewColumn.
DisplayIndex
<= this.Columns.Count);
5020
anticipatedColumnDisplayIndex = dataGridViewColumn.
DisplayIndex
; // The specified DisplayIndex is just fine.
5060
dataGridViewColumnClone.DisplayIndex = dataGridViewColumn.
DisplayIndex
;
5066
dataGridViewColumnClone.DisplayIndex = dataGridViewColumn.
DisplayIndex
;
5136
Debug.Assert(newDisplayIndex != dataGridViewColumn.
DisplayIndex
);
5145
(newDisplayIndex < dataGridViewColumn.
DisplayIndex
&& dataGridViewColumn.Frozen) ||
5146
(newDisplayIndex > dataGridViewColumn.
DisplayIndex
&& !dataGridViewColumn.Frozen))
5153
if (newDisplayIndex < dataGridViewColumn.
DisplayIndex
)
6117
else if (this.Columns[this.trackColumn].
DisplayIndex
> this.Columns[previousColumnIndex].
DisplayIndex
)
6119
this.Columns[this.trackColumn].DisplayIndex = this.Columns[previousColumnIndex].
DisplayIndex
+ 1;
6123
this.Columns[this.trackColumn].DisplayIndex = this.Columns[previousColumnIndex].
DisplayIndex
;
10715
if (dataGridViewColumn.
DisplayIndex
== -1 || dataGridViewColumn.
DisplayIndex
>= this.Columns.Count)
13836
Debug.Assert(newDisplayIndex != dataGridViewColumn.
DisplayIndex
);
13852
if (newDisplayIndex < dataGridViewColumn.
DisplayIndex
)
13858
if (newDisplayIndex <= dataGridViewColumnTmp.
DisplayIndex
&& dataGridViewColumnTmp.
DisplayIndex
< dataGridViewColumn.
DisplayIndex
)
13860
dataGridViewColumnTmp.DisplayIndexInternal = dataGridViewColumnTmp.
DisplayIndex
+ 1;
13871
if (dataGridViewColumn.
DisplayIndex
< dataGridViewColumnTmp.
DisplayIndex
&& dataGridViewColumnTmp.
DisplayIndex
<= newDisplayIndex)
13873
dataGridViewColumnTmp.DisplayIndexInternal = dataGridViewColumnTmp.
DisplayIndex
- 1;
27194
Debug.Assert((this.Columns[columnIndexFrom]).
DisplayIndex
<= (this.Columns[columnIndexTo]).
DisplayIndex
);
27308
Debug.Assert((this.Columns[columnIndexFrom]).
DisplayIndex
<= (this.Columns[columnIndexTo]).
DisplayIndex
);