275 writes to DisplayIndex
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
1556
clonedColumns[clonedColumnsCount].
DisplayIndex
= dataGridViewCols[i].DisplayIndex;
5058
dataGridViewColumnClone.
DisplayIndex
= dataGridViewColumn.DisplayIndex;
5065
dataGridViewColumnClone.
DisplayIndex
= dataGridViewColumn.DisplayIndex;
6081
Columns[_trackColumn].
DisplayIndex
= 0;
6085
Columns[_trackColumn].
DisplayIndex
= Columns[previousColumnIndex].DisplayIndex + 1;
6089
Columns[_trackColumn].
DisplayIndex
= Columns[previousColumnIndex].DisplayIndex;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
885
dataGridViewColumn.
DisplayIndex
= columnIndex;
System.Windows.Forms.Design (10)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
98
column.
DisplayIndex
= -1;
126
column.
DisplayIndex
= -1;
548
cols[i].
DisplayIndex
= -1;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (5)
148
newColumn.
DisplayIndex
= -1;
441
_columnsPrivateCopy[i].
DisplayIndex
= i;
691
item.DataGridViewColumn.
DisplayIndex
= -1;
735
item.DataGridViewColumn.
DisplayIndex
= -1;
1131
col.
DisplayIndex
= -1;
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
333
e.Column.
DisplayIndex
= -1;
689
columnsToBeAdded[i].
DisplayIndex
= -1;
System.Windows.Forms.Tests (258)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (12)
1410
dataGridView.Columns[0].
DisplayIndex
= 2;
1411
dataGridView.Columns[1].
DisplayIndex
= 1;
1412
dataGridView.Columns[2].
DisplayIndex
= 0;
1432
dataGridView.Columns[0].
DisplayIndex
= 2;
1433
dataGridView.Columns[1].
DisplayIndex
= 1;
1434
dataGridView.Columns[2].
DisplayIndex
= 0;
1454
dataGridView.Columns[0].
DisplayIndex
= 2;
1455
dataGridView.Columns[1].
DisplayIndex
= 1;
1456
dataGridView.Columns[2].
DisplayIndex
= 0;
1476
dataGridView.Columns[0].
DisplayIndex
= 2;
1477
dataGridView.Columns[1].
DisplayIndex
= 1;
1478
dataGridView.Columns[2].
DisplayIndex
= 0;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (36)
950
dataGridView.Columns[0].
DisplayIndex
= 2;
951
dataGridView.Columns[1].
DisplayIndex
= 1;
952
dataGridView.Columns[2].
DisplayIndex
= 0;
972
dataGridView.Columns[0].
DisplayIndex
= 2;
973
dataGridView.Columns[1].
DisplayIndex
= 1;
974
dataGridView.Columns[2].
DisplayIndex
= 0;
995
dataGridView.Columns[0].
DisplayIndex
= 2;
996
dataGridView.Columns[1].
DisplayIndex
= 1;
997
dataGridView.Columns[2].
DisplayIndex
= 0;
1018
dataGridView.Columns[0].
DisplayIndex
= 2;
1019
dataGridView.Columns[1].
DisplayIndex
= 1;
1020
dataGridView.Columns[2].
DisplayIndex
= 0;
1257
dataGridView.Columns[0].
DisplayIndex
= 2;
1258
dataGridView.Columns[1].
DisplayIndex
= 1;
1259
dataGridView.Columns[2].
DisplayIndex
= 0;
1281
dataGridView.Columns[0].
DisplayIndex
= 2;
1282
dataGridView.Columns[1].
DisplayIndex
= 1;
1283
dataGridView.Columns[2].
DisplayIndex
= 0;
1303
dataGridView.Columns[0].
DisplayIndex
= 2;
1304
dataGridView.Columns[1].
DisplayIndex
= 1;
1305
dataGridView.Columns[2].
DisplayIndex
= 0;
1325
dataGridView.Columns[0].
DisplayIndex
= 2;
1326
dataGridView.Columns[1].
DisplayIndex
= 1;
1327
dataGridView.Columns[2].
DisplayIndex
= 0;
1348
dataGridView.Columns[0].
DisplayIndex
= 2;
1349
dataGridView.Columns[1].
DisplayIndex
= 1;
1350
dataGridView.Columns[2].
DisplayIndex
= 0;
1370
dataGridView.Columns[0].
DisplayIndex
= 2;
1371
dataGridView.Columns[1].
DisplayIndex
= 1;
1372
dataGridView.Columns[2].
DisplayIndex
= 0;
1390
dataGridView.Columns[0].
DisplayIndex
= 2;
1391
dataGridView.Columns[1].
DisplayIndex
= 1;
1392
dataGridView.Columns[2].
DisplayIndex
= 0;
1410
dataGridView.Columns[0].
DisplayIndex
= 2;
1411
dataGridView.Columns[1].
DisplayIndex
= 1;
1412
dataGridView.Columns[2].
DisplayIndex
= 0;
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (48)
577
control.Columns[0].
DisplayIndex
= 2;
578
control.Columns[1].
DisplayIndex
= 1;
579
control.Columns[2].
DisplayIndex
= 0;
605
control.Columns[0].
DisplayIndex
= 2;
607
control.Columns[1].
DisplayIndex
= 1;
608
control.Columns[2].
DisplayIndex
= 0;
631
control.Columns[0].
DisplayIndex
= 2;
632
control.Columns[1].
DisplayIndex
= 1;
634
control.Columns[2].
DisplayIndex
= 0;
657
control.Columns[0].
DisplayIndex
= 2;
658
control.Columns[1].
DisplayIndex
= 1;
659
control.Columns[2].
DisplayIndex
= 0;
683
control.Columns[0].
DisplayIndex
= 2;
684
control.Columns[1].
DisplayIndex
= 1;
685
control.Columns[2].
DisplayIndex
= 0;
708
control.Columns[0].
DisplayIndex
= 2;
710
control.Columns[1].
DisplayIndex
= 1;
711
control.Columns[2].
DisplayIndex
= 0;
731
control.Columns[0].
DisplayIndex
= 2;
732
control.Columns[1].
DisplayIndex
= 1;
734
control.Columns[2].
DisplayIndex
= 0;
754
control.Columns[0].
DisplayIndex
= 2;
755
control.Columns[1].
DisplayIndex
= 1;
756
control.Columns[2].
DisplayIndex
= 0;
777
control.Columns[0].
DisplayIndex
= 2;
778
control.Columns[1].
DisplayIndex
= 1;
779
control.Columns[2].
DisplayIndex
= 0;
805
control.Columns[0].
DisplayIndex
= 2;
807
control.Columns[1].
DisplayIndex
= 1;
808
control.Columns[2].
DisplayIndex
= 0;
831
control.Columns[0].
DisplayIndex
= 2;
832
control.Columns[1].
DisplayIndex
= 1;
834
control.Columns[2].
DisplayIndex
= 0;
857
control.Columns[0].
DisplayIndex
= 2;
858
control.Columns[1].
DisplayIndex
= 1;
859
control.Columns[2].
DisplayIndex
= 0;
883
control.Columns[0].
DisplayIndex
= 2;
884
control.Columns[1].
DisplayIndex
= 1;
885
control.Columns[2].
DisplayIndex
= 0;
908
control.Columns[0].
DisplayIndex
= 2;
910
control.Columns[1].
DisplayIndex
= 1;
911
control.Columns[2].
DisplayIndex
= 0;
931
control.Columns[0].
DisplayIndex
= 2;
932
control.Columns[1].
DisplayIndex
= 1;
934
control.Columns[2].
DisplayIndex
= 0;
954
control.Columns[0].
DisplayIndex
= 2;
955
control.Columns[1].
DisplayIndex
= 1;
956
control.Columns[2].
DisplayIndex
= 0;
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (72)
1376
dataGridView.Columns[0].
DisplayIndex
= 2;
1377
dataGridView.Columns[1].
DisplayIndex
= 1;
1378
dataGridView.Columns[2].
DisplayIndex
= 0;
1396
dataGridView.Columns[0].
DisplayIndex
= 2;
1397
dataGridView.Columns[1].
DisplayIndex
= 1;
1398
dataGridView.Columns[2].
DisplayIndex
= 0;
1417
dataGridView.Columns[0].
DisplayIndex
= 2;
1418
dataGridView.Columns[1].
DisplayIndex
= 1;
1419
dataGridView.Columns[2].
DisplayIndex
= 0;
1438
dataGridView.Columns[0].
DisplayIndex
= 2;
1439
dataGridView.Columns[1].
DisplayIndex
= 1;
1440
dataGridView.Columns[2].
DisplayIndex
= 0;
1459
dataGridView.Columns[0].
DisplayIndex
= 2;
1460
dataGridView.Columns[1].
DisplayIndex
= 1;
1461
dataGridView.Columns[2].
DisplayIndex
= 0;
1479
dataGridView.Columns[0].
DisplayIndex
= 2;
1480
dataGridView.Columns[1].
DisplayIndex
= 1;
1481
dataGridView.Columns[2].
DisplayIndex
= 0;
1500
dataGridView.Columns[0].
DisplayIndex
= 2;
1501
dataGridView.Columns[1].
DisplayIndex
= 1;
1502
dataGridView.Columns[2].
DisplayIndex
= 0;
1521
dataGridView.Columns[0].
DisplayIndex
= 2;
1522
dataGridView.Columns[1].
DisplayIndex
= 1;
1523
dataGridView.Columns[2].
DisplayIndex
= 0;
1701
dataGridView.Columns[0].
DisplayIndex
= 2;
1702
dataGridView.Columns[1].
DisplayIndex
= 1;
1703
dataGridView.Columns[2].
DisplayIndex
= 0;
1721
dataGridView.Columns[0].
DisplayIndex
= 2;
1722
dataGridView.Columns[1].
DisplayIndex
= 1;
1723
dataGridView.Columns[2].
DisplayIndex
= 0;
1742
dataGridView.Columns[0].
DisplayIndex
= 2;
1743
dataGridView.Columns[1].
DisplayIndex
= 1;
1744
dataGridView.Columns[2].
DisplayIndex
= 0;
1763
dataGridView.Columns[0].
DisplayIndex
= 2;
1764
dataGridView.Columns[1].
DisplayIndex
= 1;
1765
dataGridView.Columns[2].
DisplayIndex
= 0;
1784
dataGridView.Columns[0].
DisplayIndex
= 2;
1785
dataGridView.Columns[1].
DisplayIndex
= 1;
1786
dataGridView.Columns[2].
DisplayIndex
= 0;
1804
dataGridView.Columns[0].
DisplayIndex
= 2;
1805
dataGridView.Columns[1].
DisplayIndex
= 1;
1806
dataGridView.Columns[2].
DisplayIndex
= 0;
1825
dataGridView.Columns[0].
DisplayIndex
= 2;
1826
dataGridView.Columns[1].
DisplayIndex
= 1;
1827
dataGridView.Columns[2].
DisplayIndex
= 0;
1846
dataGridView.Columns[0].
DisplayIndex
= 2;
1847
dataGridView.Columns[1].
DisplayIndex
= 1;
1848
dataGridView.Columns[2].
DisplayIndex
= 0;
2068
dataGridView.Columns[0].
DisplayIndex
= 2;
2069
dataGridView.Columns[1].
DisplayIndex
= 1;
2070
dataGridView.Columns[2].
DisplayIndex
= 0;
2091
dataGridView.Columns[0].
DisplayIndex
= 2;
2092
dataGridView.Columns[1].
DisplayIndex
= 1;
2093
dataGridView.Columns[2].
DisplayIndex
= 0;
2113
dataGridView.Columns[0].
DisplayIndex
= 2;
2114
dataGridView.Columns[1].
DisplayIndex
= 1;
2115
dataGridView.Columns[2].
DisplayIndex
= 0;
2135
dataGridView.Columns[0].
DisplayIndex
= 2;
2136
dataGridView.Columns[1].
DisplayIndex
= 1;
2137
dataGridView.Columns[2].
DisplayIndex
= 0;
2157
dataGridView.Columns[0].
DisplayIndex
= 2;
2158
dataGridView.Columns[1].
DisplayIndex
= 1;
2159
dataGridView.Columns[2].
DisplayIndex
= 0;
2182
dataGridView.Columns[0].
DisplayIndex
= 2;
2183
dataGridView.Columns[1].
DisplayIndex
= 1;
2184
dataGridView.Columns[2].
DisplayIndex
= 0;
2206
dataGridView.Columns[0].
DisplayIndex
= 2;
2207
dataGridView.Columns[1].
DisplayIndex
= 1;
2208
dataGridView.Columns[2].
DisplayIndex
= 0;
2230
dataGridView.Columns[0].
DisplayIndex
= 2;
2231
dataGridView.Columns[1].
DisplayIndex
= 1;
2232
dataGridView.Columns[2].
DisplayIndex
= 0;
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (4)
198
control.Columns[0].
DisplayIndex
= 1;
199
control.Columns[1].
DisplayIndex
= 0;
216
control.Columns[0].
DisplayIndex
= 1;
217
control.Columns[1].
DisplayIndex
= 0;
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (4)
231
control.Columns[0].
DisplayIndex
= 1;
232
control.Columns[1].
DisplayIndex
= 0;
250
control.Columns[0].
DisplayIndex
= 1;
251
control.Columns[1].
DisplayIndex
= 0;
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (72)
236
dataGridView.Columns[0].
DisplayIndex
= 2;
237
dataGridView.Columns[1].
DisplayIndex
= 1;
238
dataGridView.Columns[2].
DisplayIndex
= 0;
256
dataGridView.Columns[0].
DisplayIndex
= 2;
257
dataGridView.Columns[1].
DisplayIndex
= 1;
258
dataGridView.Columns[2].
DisplayIndex
= 0;
277
dataGridView.Columns[0].
DisplayIndex
= 2;
278
dataGridView.Columns[1].
DisplayIndex
= 1;
279
dataGridView.Columns[2].
DisplayIndex
= 0;
298
dataGridView.Columns[0].
DisplayIndex
= 2;
299
dataGridView.Columns[1].
DisplayIndex
= 1;
300
dataGridView.Columns[2].
DisplayIndex
= 0;
319
dataGridView.Columns[0].
DisplayIndex
= 2;
320
dataGridView.Columns[1].
DisplayIndex
= 1;
321
dataGridView.Columns[2].
DisplayIndex
= 0;
339
dataGridView.Columns[0].
DisplayIndex
= 2;
340
dataGridView.Columns[1].
DisplayIndex
= 1;
341
dataGridView.Columns[2].
DisplayIndex
= 0;
360
dataGridView.Columns[0].
DisplayIndex
= 2;
361
dataGridView.Columns[1].
DisplayIndex
= 1;
362
dataGridView.Columns[2].
DisplayIndex
= 0;
381
dataGridView.Columns[0].
DisplayIndex
= 2;
382
dataGridView.Columns[1].
DisplayIndex
= 1;
383
dataGridView.Columns[2].
DisplayIndex
= 0;
564
dataGridView.Columns[0].
DisplayIndex
= 2;
565
dataGridView.Columns[1].
DisplayIndex
= 1;
566
dataGridView.Columns[2].
DisplayIndex
= 0;
584
dataGridView.Columns[0].
DisplayIndex
= 2;
585
dataGridView.Columns[1].
DisplayIndex
= 1;
586
dataGridView.Columns[2].
DisplayIndex
= 0;
605
dataGridView.Columns[0].
DisplayIndex
= 2;
606
dataGridView.Columns[1].
DisplayIndex
= 1;
607
dataGridView.Columns[2].
DisplayIndex
= 0;
626
dataGridView.Columns[0].
DisplayIndex
= 2;
627
dataGridView.Columns[1].
DisplayIndex
= 1;
628
dataGridView.Columns[2].
DisplayIndex
= 0;
647
dataGridView.Columns[0].
DisplayIndex
= 2;
648
dataGridView.Columns[1].
DisplayIndex
= 1;
649
dataGridView.Columns[2].
DisplayIndex
= 0;
667
dataGridView.Columns[0].
DisplayIndex
= 2;
668
dataGridView.Columns[1].
DisplayIndex
= 1;
669
dataGridView.Columns[2].
DisplayIndex
= 0;
688
dataGridView.Columns[0].
DisplayIndex
= 2;
689
dataGridView.Columns[1].
DisplayIndex
= 1;
690
dataGridView.Columns[2].
DisplayIndex
= 0;
709
dataGridView.Columns[0].
DisplayIndex
= 2;
710
dataGridView.Columns[1].
DisplayIndex
= 1;
711
dataGridView.Columns[2].
DisplayIndex
= 0;
931
dataGridView.Columns[0].
DisplayIndex
= 2;
932
dataGridView.Columns[1].
DisplayIndex
= 1;
933
dataGridView.Columns[2].
DisplayIndex
= 0;
954
dataGridView.Columns[0].
DisplayIndex
= 2;
955
dataGridView.Columns[1].
DisplayIndex
= 1;
956
dataGridView.Columns[2].
DisplayIndex
= 0;
976
dataGridView.Columns[0].
DisplayIndex
= 2;
977
dataGridView.Columns[1].
DisplayIndex
= 1;
978
dataGridView.Columns[2].
DisplayIndex
= 0;
998
dataGridView.Columns[0].
DisplayIndex
= 2;
999
dataGridView.Columns[1].
DisplayIndex
= 1;
1000
dataGridView.Columns[2].
DisplayIndex
= 0;
1020
dataGridView.Columns[0].
DisplayIndex
= 2;
1021
dataGridView.Columns[1].
DisplayIndex
= 1;
1022
dataGridView.Columns[2].
DisplayIndex
= 0;
1045
dataGridView.Columns[0].
DisplayIndex
= 2;
1046
dataGridView.Columns[1].
DisplayIndex
= 1;
1047
dataGridView.Columns[2].
DisplayIndex
= 0;
1069
dataGridView.Columns[0].
DisplayIndex
= 2;
1070
dataGridView.Columns[1].
DisplayIndex
= 1;
1071
dataGridView.Columns[2].
DisplayIndex
= 0;
1093
dataGridView.Columns[0].
DisplayIndex
= 2;
1094
dataGridView.Columns[1].
DisplayIndex
= 1;
1095
dataGridView.Columns[2].
DisplayIndex
= 0;
System\Windows\Forms\DataGridViewColumnCollectionTests.cs (10)
260
DisplayIndex
= displayIndex
264
DisplayIndex
= 0
268
DisplayIndex
= 1
368
column1.
DisplayIndex
= 1;
495
DisplayIndex
= 1
500
DisplayIndex
= 0,
507
DisplayIndex
= 1
519
DisplayIndex
= 1
524
DisplayIndex
= 0
530
DisplayIndex
= 1
92 references to DisplayIndex
System.Windows.Forms (68)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (40)
1556
clonedColumns[clonedColumnsCount].DisplayIndex = dataGridViewCols[i].
DisplayIndex
;
4942
Debug.Assert(dataGridViewColumn.
DisplayIndex
>= 0);
4951
if (dataGridViewColumnTmp.
DisplayIndex
> dataGridViewColumn.
DisplayIndex
)
4953
dataGridViewColumnTmp.DisplayIndexInternal = dataGridViewColumnTmp.
DisplayIndex
- 1;
4976
Debug.Assert(dataGridViewColumn.
DisplayIndex
>= 0);
4985
if (dataGridViewColumnTmp != dataGridViewColumn && dataGridViewColumnTmp.
DisplayIndex
>= dataGridViewColumn.
DisplayIndex
)
4987
dataGridViewColumnTmp.DisplayIndexInternal = dataGridViewColumnTmp.
DisplayIndex
+ 1;
5011
if (dataGridViewColumn.
DisplayIndex
== -1 || dataGridViewColumn.
DisplayIndex
> Columns.Count)
5017
Debug.Assert(dataGridViewColumn.
DisplayIndex
>= 0 && dataGridViewColumn.
DisplayIndex
<= Columns.Count);
5018
anticipatedColumnDisplayIndex = dataGridViewColumn.
DisplayIndex
; // The specified DisplayIndex is just fine.
5058
dataGridViewColumnClone.DisplayIndex = dataGridViewColumn.
DisplayIndex
;
5065
dataGridViewColumnClone.DisplayIndex = dataGridViewColumn.
DisplayIndex
;
5137
Debug.Assert(newDisplayIndex != dataGridViewColumn.
DisplayIndex
);
5146
|| (newDisplayIndex < dataGridViewColumn.
DisplayIndex
&& dataGridViewColumn.Frozen)
5147
|| (newDisplayIndex > dataGridViewColumn.
DisplayIndex
&& !dataGridViewColumn.Frozen))
5154
if (newDisplayIndex < dataGridViewColumn.
DisplayIndex
)
6083
else if (Columns[_trackColumn].
DisplayIndex
> Columns[previousColumnIndex].
DisplayIndex
)
6085
Columns[_trackColumn].DisplayIndex = Columns[previousColumnIndex].
DisplayIndex
+ 1;
6089
Columns[_trackColumn].DisplayIndex = Columns[previousColumnIndex].
DisplayIndex
;
10538
if (dataGridViewColumn.
DisplayIndex
== -1 || dataGridViewColumn.
DisplayIndex
>= Columns.Count)
13355
Debug.Assert(newDisplayIndex != dataGridViewColumn.
DisplayIndex
);
13371
if (newDisplayIndex < dataGridViewColumn.
DisplayIndex
)
13377
if (newDisplayIndex <= dataGridViewColumnTmp.
DisplayIndex
&& dataGridViewColumnTmp.
DisplayIndex
< dataGridViewColumn.
DisplayIndex
)
13379
dataGridViewColumnTmp.DisplayIndexInternal = dataGridViewColumnTmp.
DisplayIndex
+ 1;
13390
if (dataGridViewColumn.
DisplayIndex
< dataGridViewColumnTmp.
DisplayIndex
&& dataGridViewColumnTmp.
DisplayIndex
<= newDisplayIndex)
13392
dataGridViewColumnTmp.DisplayIndexInternal = dataGridViewColumnTmp.
DisplayIndex
- 1;
27136
Debug.Assert((Columns[columnIndexFrom]).
DisplayIndex
<= (Columns[columnIndexTo]).
DisplayIndex
);
27258
Debug.Assert((Columns[columnIndexFrom]).
DisplayIndex
<= (Columns[columnIndexTo]).
DisplayIndex
);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
277
throw new ArgumentOutOfRangeException(nameof(
DisplayIndex
), value, SR.DataGridViewColumn_DisplayIndexTooNegative);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.ColumnOrderComparer.cs (2)
19
return x.
DisplayIndex
- y.
DisplayIndex
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (25)
200
if (dataGridViewColumn.
DisplayIndex
!= -1)
217
if (dataGridViewColumn.
DisplayIndex
< smallestDisplayIndex)
219
smallestDisplayIndex = dataGridViewColumn.
DisplayIndex
;
233
if (dataGridViewColumn.
DisplayIndex
== -1)
359
int displayIndex1 = _items[columnIndex1].
DisplayIndex
;
360
int displayIndex2 = _items[columnIndex2].
DisplayIndex
;
372
if (dataGridViewColumn.
DisplayIndex
== displayIndex)
381
if (dataGridViewColumn.
DisplayIndex
== displayIndex)
750
(dataGridViewColumn.
DisplayIndex
> dataGridViewColumnStart.
DisplayIndex
||
751
(dataGridViewColumn.
DisplayIndex
== dataGridViewColumnStart.
DisplayIndex
&&
754
if (dataGridViewColumn.
DisplayIndex
< displayIndexMin ||
755
(dataGridViewColumn.
DisplayIndex
== displayIndexMin &&
759
displayIndexMin = dataGridViewColumn.
DisplayIndex
;
823
(dataGridViewColumn.
DisplayIndex
< dataGridViewColumnStart.
DisplayIndex
||
824
(dataGridViewColumn.
DisplayIndex
== dataGridViewColumnStart.
DisplayIndex
&&
827
if (dataGridViewColumn.
DisplayIndex
> displayIndexMax ||
828
(dataGridViewColumn.
DisplayIndex
== displayIndexMax &&
832
displayIndexMax = dataGridViewColumn.
DisplayIndex
;
882
int originalDisplayIndex = dataGridViewColumn.
DisplayIndex
;
1170
if (_itemsSorted[index + 1].
DisplayIndex
!=
1171
_itemsSorted[index].
DisplayIndex
+ 1)
System.Windows.Forms.Tests (24)
System\Windows\Forms\DataGridViewColumnCollectionTests.cs (22)
48
Assert.Equal(0, column1.
DisplayIndex
);
56
Assert.Equal(0, column1.
DisplayIndex
);
59
Assert.Equal(1, column2.
DisplayIndex
);
76
Assert.Equal(0, column1.
DisplayIndex
);
84
Assert.Equal(0, column1.
DisplayIndex
);
87
Assert.Equal(1, column2.
DisplayIndex
);
126
Assert.Equal(0, column1.
DisplayIndex
);
134
Assert.Equal(0, column1.
DisplayIndex
);
137
Assert.Equal(1, column2.
DisplayIndex
);
200
Assert.Equal(0, column1.
DisplayIndex
);
208
Assert.Equal(0, column1.
DisplayIndex
);
211
Assert.Equal(1, column2.
DisplayIndex
);
234
Assert.Equal(0, column1.
DisplayIndex
);
242
Assert.Equal(0, column1.
DisplayIndex
);
245
Assert.Equal(1, column2.
DisplayIndex
);
276
Assert.Equal(0, column1.
DisplayIndex
);
284
Assert.Equal(1, column1.
DisplayIndex
);
287
Assert.Equal(0, column2.
DisplayIndex
);
295
Assert.Equal(2, column1.
DisplayIndex
);
298
Assert.Equal(0, column2.
DisplayIndex
);
301
Assert.Equal(1, column3.
DisplayIndex
);
320
Assert.Equal(0, column.
DisplayIndex
);
System\Windows\Forms\DataGridViewColumnTests.cs (2)
23
Assert.Equal(-1, column.
DisplayIndex
);
74
Assert.Equal(-1, column.
DisplayIndex
);