464 references to Index
System.Windows.Forms (441)
winforms\Managed\System\WinForms\DataGridView.cs (3)
1145
previousModes[dataGridViewColumn.
Index
] = dataGridViewColumn.InheritedAutoSizeMode;
2998
firstDisplayedColumnIndex = dataGridViewColumn.
Index
;
4585
if (!ScrollIntoView(dataGridViewColumn.
Index
, firstVisibleRowIndex, false))
winforms\Managed\System\WinForms\DataGridViewBand.cs (2)
80
return ((DataGridViewRow) this).GetContextMenuStrip(this.
Index
);
1054
sb.Append(this.
Index
.ToString(CultureInfo.CurrentCulture));
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (9)
104
DataGridViewButtonCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewButtonCell;
110
this.DataGridView.OnColumnCommonChange(this.
Index
);
137
this.DataGridView.OnColumnCommonChange(this.
Index
);
146
DataGridViewButtonCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewButtonCell;
149
this.DataGridView.OnColumnCommonChange(this.
Index
);
153
this.DataGridView.InvalidateColumn(this.
Index
);
188
DataGridViewButtonCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewButtonCell;
194
this.DataGridView.OnColumnCommonChange(this.
Index
);
255
sb.Append(this.
Index
.ToString(CultureInfo.CurrentCulture));
winforms\Managed\System\WinForms\DataGridViewCell.cs (20)
132
return this.owningColumn.
Index
;
689
return this.owningRow.
Index
;
1215
bool isLastVisibleColumn = (dataGridViewColumn != null && dataGridViewColumn.
Index
== this.ColumnIndex);
4650
if (this.OwningRow.
Index
== this.DataGridView.CurrentCellAddress.Y)
4811
string name = SR.GetString(SR.DataGridView_AccDataGridViewCellName, this.owner.OwningColumn.HeaderText, this.owner.OwningRow.
Index
);
4924
cellBounds = this.owner.DataGridView.GetCellDisplayRectangle(this.owner.OwningColumn.
Index
, this.owner.OwningRow.
Index
, false /*cutOverflow*/);
4928
cellBounds = this.owner.DataGridView.GetCellDisplayRectangle(-1, this.owner.OwningRow.
Index
, false /*cutOverflow*/);
4932
cellBounds = this.owner.DataGridView.GetCellDisplayRectangle(this.owner.OwningColumn.
Index
, -1, false /*cutOverflow*/);
5016
this.owner.OwningRow.
Index
,
5271
if (this.owner.OwningRow.
Index
== this.owner.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible))
5285
int previousVisibleRow = this.owner.DataGridView.Rows.GetPreviousRow(this.owner.OwningRow.
Index
, DataGridViewElementStates.Visible);
5286
return this.owner.DataGridView.Rows[previousVisibleRow].Cells[this.owner.OwningColumn.
Index
].AccessibilityObject;
5289
if (this.owner.OwningRow.
Index
== this.owner.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible))
5295
int nextVisibleRow = this.owner.DataGridView.Rows.GetNextRow(this.owner.OwningRow.
Index
, DataGridViewElementStates.Visible);
5296
return this.owner.DataGridView.Rows[nextVisibleRow].Cells[this.owner.OwningColumn.
Index
].AccessibilityObject;
5337
DataGridViewElementStates.None).
Index
;
5379
DataGridViewElementStates.None).
Index
;
5617
return this.owner.OwningRow != null ? this.owner.OwningRow.
Index
: -1;
5626
return this.owner.OwningColumn != null ? this.owner.OwningColumn.
Index
: -1;
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (2)
229
return (DataGridViewCell) this.items[dataGridViewColumn.
Index
];
242
this[dataGridViewColumn.
Index
] = value;
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (11)
122
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewCheckBoxCell;
128
this.DataGridView.InvalidateColumn(this.
Index
);
162
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewCheckBoxCell;
168
this.DataGridView.OnColumnCommonChange(this.
Index
);
203
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewCheckBoxCell;
209
this.DataGridView.InvalidateColumn(this.
Index
);
246
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewCheckBoxCell;
252
this.DataGridView.InvalidateColumn(this.
Index
);
300
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewCheckBoxCell;
306
this.DataGridView.InvalidateColumn(this.
Index
);
360
sb.Append(this.
Index
.ToString(CultureInfo.CurrentCulture));
winforms\Managed\System\WinForms\DataGridViewColumn.cs (9)
620
Debug.Assert(this.
Index
> -1);
1225
Debug.Assert(dataGridView == null || this.
Index
> -1);
1269
preferredCellThickness = dataGridViewRow.Cells[this.
Index
].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness);
1273
preferredCellThickness = dataGridViewRow.Cells[this.
Index
].GetPreferredSize(rowIndex).Width;
1292
preferredCellThickness = dataGridViewRow.Cells[this.
Index
].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness);
1296
preferredCellThickness = dataGridViewRow.Cells[this.
Index
].GetPreferredSize(rowIndex).Width;
1315
preferredCellThickness = dataGridViewRow.Cells[this.
Index
].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness);
1319
preferredCellThickness = dataGridViewRow.Cells[this.
Index
].GetPreferredSize(rowIndex).Width;
1340
sb.Append(this.
Index
.ToString(CultureInfo.CurrentCulture));
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (10)
257
return dataGridViewColumn.
Index
;
449
while (dataGridViewColumn != null && dataGridViewColumn.
Index
!= columnIndex)
628
if (dataGridViewColumn.
Index
== ((DataGridViewColumn) this.itemsSorted[index]).
Index
)
849
dataGridViewColumn.
Index
> dataGridViewColumnStart.
Index
)))
853
dataGridViewColumn.
Index
< indexMin))
921
dataGridViewColumn.
Index
< dataGridViewColumnStart.
Index
)))
925
dataGridViewColumn.
Index
> indexMax))
winforms\Managed\System\WinForms\DataGridViewColumnEventArgs.cs (1)
24
Debug.Assert(dataGridViewColumn.
Index
>= -1);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (2)
1478
DataGridViewElementStates.None).
Index
;
1503
DataGridViewElementStates.None).
Index
;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
1990
bool isFirstDisplayedColumn = this.OwningColumn.
Index
== this.DataGridView.FirstDisplayedColumnIndex;
1991
bool isFirstDisplayedScrollingColumn = this.OwningColumn.
Index
== this.DataGridView.FirstDisplayedScrollingColumnIndex;
2000
Rectangle cellBounds = this.DataGridView.GetCellDisplayRectangle(this.OwningColumn.
Index
, rowIndex, false /*cutOverflow*/);
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (19)
61
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
138
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
144
this.DataGridView.OnColumnCommonChange(this.
Index
);
181
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
187
this.DataGridView.OnColumnCommonChange(this.
Index
);
222
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
229
this.DataGridView.InvalidateColumn(this.
Index
);
264
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
271
this.DataGridView.InvalidateColumn(this.
Index
);
304
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
343
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
349
this.DataGridView.OnColumnCommonChange(this.
Index
);
406
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
412
this.DataGridView.OnColumnCommonChange(this.
Index
);
445
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
484
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
531
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewComboBoxCell;
538
this.DataGridView.OnColumnCommonChange(this.
Index
);
552
sb.Append(this.
Index
.ToString(CultureInfo.CurrentCulture));
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (1)
1328
columnIndex = dataGridViewColumn.
Index
;
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (8)
121
DataGridViewImageCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewImageCell;
147
this.DataGridView.OnColumnCommonChange(this.
Index
);
169
this.DataGridView.OnColumnCommonChange(this.
Index
);
215
DataGridViewImageCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewImageCell;
221
this.DataGridView.OnColumnCommonChange(this.
Index
);
254
DataGridViewImageCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewImageCell;
260
this.DataGridView.OnColumnCommonChange(this.
Index
);
352
sb.Append(this.
Index
.ToString(CultureInfo.CurrentCulture));
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (17)
56
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewLinkCell;
62
this.DataGridView.InvalidateColumn(this.
Index
);
127
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewLinkCell;
133
this.DataGridView.InvalidateColumn(this.
Index
);
166
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewLinkCell;
172
this.DataGridView.InvalidateColumn(this.
Index
);
209
this.DataGridView.OnColumnCommonChange(this.
Index
);
218
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewLinkCell;
221
this.DataGridView.OnColumnCommonChange(this.
Index
);
225
this.DataGridView.InvalidateColumn(this.
Index
);
260
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewLinkCell;
266
this.DataGridView.InvalidateColumn(this.
Index
);
300
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewLinkCell;
306
this.DataGridView.OnColumnCommonChange(this.
Index
);
339
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewLinkCell;
345
this.DataGridView.InvalidateColumn(this.
Index
);
392
sb.Append(this.
Index
.ToString(CultureInfo.CurrentCulture));
winforms\Managed\System\WinForms\DataGridViewMethods.cs (237)
332
int preferredThickness = dataGridViewRow.Cells[dataGridViewColumn.
Index
].GetPreferredWidth(rowIndex, dataGridViewRow.GetHeight(rowIndex));
586
if (dataGridViewColumnTmp.
Index
!= dataGridViewColumn.
Index
)
620
if (dataGridViewColumnTmp.
Index
!= dataGridViewColumn.
Index
&&
652
if (dataGridViewColumnTmp.
Index
== dataGridViewColumn.
Index
)
670
if (dataGridViewColumnTmp.
Index
!= dataGridViewColumn.
Index
&&
725
if (dataGridViewColumnTmp.
Index
!= dataGridViewColumn.
Index
)
727
if (this.Columns.DisplayInOrder(dataGridViewColumn.
Index
, dataGridViewColumnTmp.
Index
))
769
if (dataGridViewColumnTmp.
Index
!= dataGridViewColumn.
Index
&&
772
this.Columns.DisplayInOrder(dataGridViewColumn.
Index
, dataGridViewColumnTmp.
Index
))
810
if (dataGridViewColumnTmp.
Index
== dataGridViewColumn.
Index
||
811
this.Columns.DisplayInOrder(dataGridViewColumnTmp.
Index
, dataGridViewColumn.
Index
))
813
if (dataGridViewColumnTmp.
Index
== dataGridViewColumn.
Index
)
836
if (this.Columns.DisplayInOrder(dataGridViewColumn.
Index
, dataGridViewColumnTmp.
Index
) &&
1403
if (!dataGridViewRow.Cells[dataGridViewColumn.
Index
].Selected)
1428
if (!this.selectedBandIndexes.Contains(dataGridViewColumn.
Index
))
1435
if (!dataGridViewRow.Cells[dataGridViewColumn.
Index
].Selected)
1470
if (!dataGridViewRow.Cells[dataGridViewColumn.
Index
].Selected)
1648
ret |= AutoResizeColumnInternal(dataGridViewColumn.
Index
, inheritedAutoSizeColumnCriteria, fixedHeight);
3661
if (firstVisibleFrozenColumn.
Index
== dataGridViewColumn.
Index
)
3665
Debug.Assert(this.Columns.DisplayInOrder(firstVisibleFrozenColumn.
Index
, dataGridViewColumn.
Index
));
3666
return this.Columns.GetColumnCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, firstVisibleFrozenColumn.
Index
, dataGridViewColumn.
Index
) < this.displayedBandsInfo.NumDisplayedFrozenCols;
3673
if (firstDisplayedScrollingColumnIndex == dataGridViewColumn.
Index
)
3677
if (this.Columns.DisplayInOrder(firstDisplayedScrollingColumnIndex, dataGridViewColumn.
Index
))
3679
return this.Columns.GetColumnCount(DataGridViewElementStates.Visible, firstDisplayedScrollingColumnIndex, dataGridViewColumn.
Index
) < this.displayedBandsInfo.NumDisplayedScrollingCols;
3716
previousColumnIndex = dataGridViewColumnPrev.
Index
;
3734
(dataGridViewColumnNext == null || this.trackColumn != dataGridViewColumnNext.
Index
))
4200
return (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
4231
return dataGridViewColumn.
Index
;
4237
return dataGridViewColumn.
Index
;
4586
firstDisplayedFrozenCol = dataGridViewColumn.
Index
;
4590
lastDisplayedFrozenCol = dataGridViewColumn.
Index
;
4620
firstDisplayedScrollingCol = dataGridViewColumn.
Index
;
4669
firstDisplayedScrollingCol = dataGridViewColumn.
Index
;
4685
firstDisplayedScrollingCol = dataGridViewColumn.
Index
;
4728
this.displayedBandsInfo.LastTotallyDisplayedScrollingCol = dataGridViewColumn.
Index
;
4942
Debug.Assert(dataGridViewColumn.
Index
>= 0);
5090
while (dataGridViewColumnTmp != null && this.Columns.DisplayInOrder(dataGridViewColumnTmp.
Index
, dataGridViewColumn.
Index
))
5123
while (dataGridViewColumnTmp != null && this.Columns.DisplayInOrder(dataGridViewColumn.
Index
, dataGridViewColumnTmp.
Index
))
5196
for (int columnIndex = dataGridViewColumn.
Index
; columnIndex < this.Columns.Count; columnIndex++)
5198
this.Columns[columnIndex].IndexInternal = this.Columns[columnIndex].
Index
- 1;
5199
Debug.Assert(this.Columns[columnIndex].
Index
== columnIndex);
5207
for (int columnIndex = dataGridViewColumn.
Index
+ insertionCount; columnIndex < this.Columns.Count; columnIndex++)
5354
if (dataGridViewRow.
Index
>= 0)
5356
dataGridViewRow.IndexInternal = dataGridViewRow.
Index
- 1;
5357
Debug.Assert(dataGridViewRow.
Index
== rowIndex);
5380
if (dataGridViewRow.
Index
>= 0)
5382
dataGridViewRow.IndexInternal = dataGridViewRow.
Index
+ insertionCount;
5383
Debug.Assert(dataGridViewRow.
Index
== rowIndex);
5478
Debug.Assert(dataGridViewRow.
Index
== -1);
5693
rectInsertionBar.X = GetColumnXFromIndex(this.Columns.GetFirstColumn(DataGridViewElementStates.Visible).
Index
);
6364
if (dataGridViewRow.
Index
== -1)
6734
columnIndexTmp = (dataGridViewColumnTmp == null) ? -1 : dataGridViewColumnTmp.
Index
;
7384
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
7398
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
7449
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
7463
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
7656
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
7670
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
7721
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
7735
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
7937
if (lColumn == null || this.Columns.DisplayInOrder(columnIndex, lColumn.
Index
))
7941
if (uColumn == null || this.Columns.DisplayInOrder(uColumn.
Index
, columnIndex))
7964
if (lColumn == null || this.Columns.DisplayInOrder(dataGridViewCell.ColumnIndex, lColumn.
Index
))
7968
if (uColumn == null || this.Columns.DisplayInOrder(uColumn.
Index
, dataGridViewCell.ColumnIndex))
7979
Debug.Assert(lColumn.
Index
== uColumn.
Index
|| this.Columns.DisplayInOrder(lColumn.
Index
, uColumn.
Index
));
8122
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
8182
cellContent = this.Rows.SharedRow(rowIndex).Cells[dataGridViewColumn.
Index
].GetClipboardContentInternal(rowIndex,
8283
if (dataGridViewColumn.
Index
== columnIndex)
8314
if (dataGridViewColumn.
Index
== columnIndex)
8328
if (dataGridViewColumn.
Index
== this.displayedBandsInfo.FirstDisplayedScrollingCol)
8350
if (dataGridViewColumn.
Index
== this.displayedBandsInfo.FirstDisplayedScrollingCol)
8435
return dataGridViewColumn.
Index
;
8440
return dataGridViewColumn.
Index
;
8475
return dataGridViewColumn.
Index
;
8480
return dataGridViewColumn.
Index
;
8541
if (index == dataGridViewColumn.
Index
)
8581
if (index == dataGridViewColumn.
Index
)
8614
if (index == dataGridViewColumn.
Index
)
8690
firstColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
8778
int firstUnfrozenColumnIndex = this.Columns.GetFirstColumn(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen).
Index
;
9492
hti.adjacentCol = dataGridViewColumn.
Index
;
9668
hti.adjacentCol = dataGridViewColumn.
Index
;
9707
if (hti.col == dataGridViewColumn.
Index
&&
10639
InvalidateColumnInternal(dataGridViewColumn.
Index
);
10661
InvalidateColumnInternal(dataGridViewColumn.
Index
);
10711
Debug.Assert(dataGridViewColumn.
Index
>= 0);
10712
Debug.Assert(dataGridViewColumn.
Index
< this.Columns.Count);
10719
dataGridViewColumn.DisplayIndexInternal = dataGridViewColumn.
Index
;
10730
AdjustExpandingRows(dataGridViewColumn.
Index
, false /*fixedWidth*/);
10737
AutoResizeColumnHeadersHeight(dataGridViewColumn.
Index
, true /*fixedRowHeadersWidth*/, fixedColumnWidth);
10744
AutoResizeColumnInternal(dataGridViewColumn.
Index
, (DataGridViewAutoSizeColumnCriteriaInternal)autoSizeColumnMode, true /*fixedHeight*/);
10749
AutoResizeColumnHeadersHeight(dataGridViewColumn.
Index
, true /*fixedRowHeadersWidth*/, true /*fixedColumnWidth*/);
10877
OnAddedRow_PreNotification(dataGridViewRow.
Index
);
10885
OnAddedRow_PostNotification(dataGridViewRow.
Index
);
11378
AutoResizeColumnInternal(dataGridViewColumn.
Index
,
11398
AutoResizeColumnHeadersHeight(dataGridViewColumn.
Index
, true /*fixedRowHeadersWidth*/, true /*fixedColumnWidth*/);
11404
AutoResizeColumnInternal(dataGridViewColumn.
Index
,
11437
DataGridViewAutoSizeColumnMode previousInheritedMode = previousModes[dataGridViewColumn.
Index
];
11457
AutoResizeColumnInternal(dataGridViewColumn.
Index
,
11490
AutoResizeColumnInternal(dataGridViewColumn.
Index
,
12468
hti.col = dataGridViewLastVisibleColumn.
Index
;
13799
InvalidateColumnInternal(e.Column.
Index
);
13817
OnColumnGlobalAutoSize(e.Column.
Index
);
13966
OnColumnGlobalAutoSize(e.Column.
Index
);
14052
OnColumnHeaderGlobalAutoSize(e.Column.
Index
);
14543
InvalidateCellPrivate(dataGridViewColumn.
Index
, -1);
14550
AutoResizeColumnHeadersHeight(dataGridViewColumn.
Index
, true /*fixedRowHeadersWidth*/, fixedColumnWidth);
14555
AutoResizeColumnInternal(dataGridViewColumn.
Index
, autoSizeColumnCriteriaInternal, fixedHeight);
14560
AutoResizeColumnInternal(dataGridViewColumn.
Index
, autoSizeColumnCriteriaInternal, true /*fixedHeight*/);
14565
AutoResizeColumnHeadersHeight(dataGridViewColumn.
Index
, true /*fixedRowHeadersWidth*/, true /*fixedColumnWidth*/);
14618
SelectColumnRange(dataGridViewColumn.
Index
, hti.col, true);
14625
SelectColumnRange(dataGridViewColumn.
Index
, this.trackColumnEdge, false);
14632
SelectColumnRange(dataGridViewColumn.
Index
, hti.col, true);
14639
SelectColumnRange(hti.col, dataGridViewColumn.
Index
, true);
14646
SelectColumnRange(this.trackColumnEdge, dataGridViewColumn.
Index
, false);
14653
SelectColumnRange(hti.col, dataGridViewColumn.
Index
, true);
14660
SelectColumnRange(dataGridViewColumn.
Index
, this.trackColumnEdge, false);
14663
SelectColumnRange(hti.col, dataGridViewColumn.
Index
, true);
14670
SelectColumnRange(this.trackColumnEdge, dataGridViewColumn.
Index
, false);
14673
SelectColumnRange(dataGridViewColumn.
Index
, hti.col, true);
14752
AutoResizeColumnHeadersHeight(dataGridViewColumn.
Index
, true /*fixedRowHeadersWidth*/, fixedColumnWidth);
14757
AutoResizeColumnInternal(dataGridViewColumn.
Index
, autoSizeColumnCriteriaInternal, fixedHeight);
14762
AutoResizeColumnInternal(dataGridViewColumn.
Index
, autoSizeColumnCriteriaInternal, true /*fixedHeight*/);
14767
AutoResizeColumnHeadersHeight(dataGridViewColumn.
Index
, true /*fixedRowHeadersWidth*/, true /*fixedColumnWidth*/);
14794
InvalidateColumnInternal(dataGridViewColumn.
Index
);
14806
Debug.Assert(this.Columns.DisplayInOrder(dataGridViewColumn.
Index
, this.displayedBandsInfo.FirstDisplayedScrollingCol));
14859
AutoResizeColumnInternal(dataGridViewColumn.
Index
, (DataGridViewAutoSizeColumnCriteriaInternal)autoSizeColumnMode, !autoSizeRows /*fixedHeight*/);
14873
AdjustExpandingRows(dataGridViewColumn.
Index
, true /*fixedWidth*/);
14882
AutoResizeColumnInternal(dataGridViewColumn.
Index
, (DataGridViewAutoSizeColumnCriteriaInternal)autoSizeColumnMode, true /*fixedHeight*/);
14899
dataGridViewColumn.
Index
== this.ptCurrentCell.X &&
14962
int leftEdge = GetColumnXFromIndex(e.Column.
Index
);
14980
PositionEditingControl(this.ptCurrentCell.X != e.Column.
Index
, true, false);
15000
OnColumnGlobalAutoSize(e.Column.
Index
);
15148
if (eh != null && dataGridViewRow.DataGridView != null && dataGridViewRow.
Index
== -1)
15155
OnRowStateChanged(dataGridViewRow.
Index
== -1 ? index : dataGridViewRow.
Index
, dgvrsce);
15209
else if (dataGridViewColumn.Visible && this.ptCurrentCell.X == dataGridViewColumn.
Index
)
15228
if (this.ptCurrentCell.X == dataGridViewColumn.
Index
&&
15262
int rowIndex = ((dataGridViewRow.
Index
> -1) ? dataGridViewRow.
Index
: index);
15758
this.displayedBandsInfo.CorrectColumnIndexAfterInsertion(dataGridViewColumn.
Index
, 1);
17326
Debug.Assert(dataGridViewColumn.
Index
>= 0);
17340
this.displayedBandsInfo.CorrectRowIndexAfterDeletion(dataGridViewColumn.
Index
);
17475
Debug.Assert(dataGridViewColumn.
Index
>= 0 && dataGridViewColumn.
Index
< this.Columns.Count);
17478
int columnIndex = dataGridViewColumn.
Index
;
17492
if (dataGridViewColumnNext.
Index
> columnIndex)
17494
newX = dataGridViewColumnNext.
Index
- 1;
17498
newX = dataGridViewColumnNext.
Index
;
17509
if (dataGridViewColumnPrevious.
Index
> columnIndex)
17511
newX = dataGridViewColumnPrevious.
Index
- 1;
17515
newX = dataGridViewColumnPrevious.
Index
;
17615
if (this.displayedBandsInfo.FirstDisplayedScrollingCol == dataGridViewColumn.
Index
)
17621
else if (this.Columns.DisplayInOrder(this.displayedBandsInfo.FirstDisplayedScrollingCol, dataGridViewColumn.
Index
))
17828
OnCellCommonChange(columnIndex, dataGridViewRow.
Index
);
17843
if (this.ptCurrentCell.X == dataGridViewRow.
Index
&&
18047
OnRowGlobalAutoSize(e.Row.
Index
);
18103
OnRowGlobalAutoSize(e.Row.
Index
);
18228
UpdateRowErrorText(e.Row.
Index
);
18323
OnRowHeaderGlobalAutoSize(e.Row.
Index
);
18588
if (IsInnerCellOutOfBounds(dataGridViewColumn.
Index
, hti.row))
18593
bool success = ScrollIntoView(dataGridViewColumn.
Index
, hti.row, false);
18595
if (IsInnerCellOutOfBounds(dataGridViewColumn.
Index
, hti.row))
18599
success = SetCurrentCellAddressCore(dataGridViewColumn.
Index
, hti.row, !selectRowRange, false, true);
18764
UpdateRowHeightInfoPrivate(e.Row.
Index
, false, false /*invalidInAdjustFillingColumns*/);
18772
OnRowGlobalAutoSize(e.Row.
Index
);
19173
if (dataGridViewRow.
Index
== -1)
19234
if (-1 != this.ptCurrentCell.X && dataGridViewRow.
Index
== this.ptCurrentCell.Y && this.editingControl != null)
20549
Debug.Assert(dataGridViewRow.
Index
== -1);
20561
Debug.Assert(dataGridViewRow.
Index
== -1);
20708
int firstVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
21552
int lastVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
22007
int firstVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
22508
int firstVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
22522
previousVisibleColumnIndex = dataGridViewColumn.
Index
;
23246
int firstVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
23486
int firstVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
23747
int lastVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
23761
nextVisibleColumnIndex = dataGridViewColumn.
Index
;
24744
int firstVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
25723
if (column.Selected && (!this.selectedBandIndexes.Contains(column.
Index
)))
25725
this.selectedBandIndexes.Add(column.
Index
);
26190
DataGridViewElementStates.None).
Index
;
26209
DataGridViewElementStates.None).
Index
;
26717
this.ptAnchorCell.X = dataGridViewColumn.
Index
;
27224
columnIndex = dataGridViewColumn.
Index
;
27252
columnIndex = dataGridViewColumn.
Index
;
27332
columnIndex = dataGridViewColumn.
Index
;
28546
int firstVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
28560
nextVisibleColumnIndex = dataGridViewColumn.
Index
;
28702
int firstVisibleColumnIndex = (dataGridViewColumn == null) ? -1 : dataGridViewColumn.
Index
;
28717
previousVisibleColumnIndex = dataGridViewColumn.
Index
;
28730
int lastVisibleColumnIndex = dataGridViewColumn.
Index
;
29282
SelectCellRange(dataGridViewColumn.
Index
, anchorRowIndex, newEdgeColumnIndex, newEdgeRowIndex, true);
29287
SelectCellRange(dataGridViewColumn.
Index
, newEdgeRowIndex, newEdgeColumnIndex, anchorRowIndex, true);
29299
SelectCellRange(newEdgeColumnIndex, anchorRowIndex, dataGridViewColumn.
Index
, newEdgeRowIndex, true);
29304
SelectCellRange(newEdgeColumnIndex, newEdgeRowIndex, dataGridViewColumn.
Index
, anchorRowIndex, true);
29360
SelectCellRange(dataGridViewColumn.
Index
, anchorRowIndex, newEdgeColumnIndex, oldEdgeRowIndex, true);
29375
SelectCellRange(dataGridViewColumn.
Index
, oldEdgeRowIndex, newEdgeColumnIndex, anchorRowIndex, true);
29398
SelectCellRange(oldEdgeColumnIndex, oldEdgeRowIndex, dataGridViewColumn.
Index
, anchorRowIndex, false);
29416
SelectCellRange(newEdgeColumnIndex, oldEdgeRowIndex, dataGridViewColumn.
Index
, anchorRowIndex, true);
29431
SelectCellRange(dataGridViewColumn.
Index
, oldEdgeRowIndex, oldEdgeColumnIndex, anchorRowIndex, false);
29453
SelectCellRange(newEdgeColumnIndex, anchorRowIndex, dataGridViewColumn.
Index
, oldEdgeRowIndex, true);
29471
SelectCellRange(dataGridViewColumn.
Index
, anchorRowIndex, oldEdgeColumnIndex, oldEdgeRowIndex, false);
29475
SelectCellRange(dataGridViewColumn.
Index
, oldEdgeRowIndex, oldEdgeColumnIndex, anchorRowIndex, false);
29493
SelectCellRange(dataGridViewColumn.
Index
, anchorRowIndex, oldEdgeColumnIndex, oldEdgeRowIndex, false);
29513
dataGridViewColumn.
Index
,
29530
SelectCellRange(dataGridViewColumn.
Index
, oldEdgeRowIndex, oldEdgeColumnIndex, anchorRowIndex, false);
29553
dataGridViewColumn.
Index
,
29567
SelectCellRange(dataGridViewColumn.
Index
, anchorRowIndex, oldEdgeColumnIndex, oldEdgeRowIndex, false);
29588
SelectCellRange(oldEdgeColumnIndex, anchorRowIndex, dataGridViewColumn.
Index
, oldEdgeRowIndex, false);
29592
SelectCellRange(oldEdgeColumnIndex, oldEdgeRowIndex, dataGridViewColumn.
Index
, anchorRowIndex, false);
29604
SelectCellRange(oldEdgeColumnIndex, anchorRowIndex, dataGridViewColumn.
Index
, oldEdgeRowIndex, false);
29625
SelectCellRange(dataGridViewColumn.
Index
,
29643
SelectCellRange(oldEdgeColumnIndex, oldEdgeRowIndex, dataGridViewColumn.
Index
, anchorRowIndex, false);
29664
SelectCellRange(dataGridViewColumn.
Index
,
29679
SelectCellRange(oldEdgeColumnIndex, anchorRowIndex, dataGridViewColumn.
Index
, oldEdgeRowIndex, false);
winforms\Managed\System\WinForms\DataGridViewRow.cs (55)
116
this.
Index
> -1 &&
117
this.
Index
!= this.DataGridView.NewRowIndex)
119
return this.DataGridView.DataConnection.CurrencyManager[this.
Index
];
144
if (this.DataGridView != null && this.
Index
== -1)
160
if (this.DataGridView != null && this.
Index
== -1)
164
return GetDisplayed(this.
Index
);
183
if (this.DataGridView != null && this.
Index
== -1)
202
Debug.Assert(this.
Index
>= -1);
203
return GetErrorText(this.
Index
);
240
if (this.DataGridView != null && this.
Index
== -1)
244
return GetFrozen(this.
Index
);
248
if (this.DataGridView != null && this.
Index
== -1)
296
if (this.DataGridView != null && this.
Index
== -1)
309
if (this.
Index
== -1)
315
BuildInheritedRowStyle(this.
Index
, inheritedRowStyle);
329
return this.DataGridView != null && this.DataGridView.NewRowIndex == this.
Index
;
346
if (this.DataGridView != null && this.
Index
== -1)
366
if (this.DataGridView != null && this.
Index
== -1)
370
return GetReadOnly(this.
Index
);
388
if (this.DataGridView != null && this.
Index
== -1)
392
return GetResizable(this.
Index
);
405
if (this.DataGridView != null && this.
Index
== -1)
409
return GetSelected(this.
Index
);
422
if (this.DataGridView != null && this.
Index
== -1)
426
return GetState(this.
Index
);
438
if (this.DataGridView != null && this.
Index
== -1)
442
return GetVisible(this.
Index
);
446
if (this.DataGridView != null && this.
Index
== -1)
1265
Debug.Assert(this.
Index
== -1);
1478
if (this.DataGridView == null || this.DataGridView.Rows.SharedRow(rowIndex).
Index
!= -1)
1480
if (rowIndex != this.
Index
)
1618
cell = this.Cells[dataGridViewColumn.
Index
];
1641
if (this.
Index
!= -1)
1705
cell = this.Cells[dataGridViewColumn.
Index
];
1728
if (this.
Index
!= -1)
1829
Debug.Assert(this.
Index
== -1);
1862
if (this.
Index
== -1)
1883
if (!cells[columnIndex].SetValueInternal(this.
Index
, values[columnIndex]))
1899
sb.Append(this.
Index
.ToString(CultureInfo.CurrentCulture));
1934
if (this.owner.
Index
< this.owner.DataGridView.FirstDisplayedScrollingRowIndex)
1938
int visibleRowIndex = this.owner.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, this.owner.
Index
);
1947
else if (this.owner.
Index
>= this.owner.DataGridView.FirstDisplayedScrollingRowIndex &&
1948
this.owner.
Index
< this.owner.DataGridView.FirstDisplayedScrollingRowIndex + this.owner.DataGridView.DisplayedRowCount(true /*includePartialRow*/))
1950
rowRect = this.owner.DataGridView.GetRowDisplayRectangle(this.owner.
Index
, false /*cutOverflow*/);
1957
int visibleRowIndex = this.owner.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, this.owner.
Index
);
1992
return SR.GetString(SR.DataGridView_AccRowName, this.owner.
Index
.ToString(CultureInfo.CurrentCulture));
2110
Rectangle rowBounds = this.owner.DataGridView.GetRowDisplayRectangle(this.owner.
Index
, true /*cutOverflow*/);
2130
if (this.owner.DataGridView.AllowUserToAddRows && this.owner.
Index
== this.owner.DataGridView.NewRowIndex)
2219
if (this.owner.DataGridView.Focused && this.owner.DataGridView.CurrentCell != null && this.owner.DataGridView.CurrentCell.RowIndex == this.owner.
Index
)
2241
if (this.owner.
Index
!= this.owner.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible))
2243
int nextVisibleRow = this.owner.DataGridView.Rows.GetNextRow(this.owner.
Index
, DataGridViewElementStates.Visible);
2260
if (this.owner.
Index
!= this.owner.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible))
2262
int previousVisibleRow = this.owner.DataGridView.Rows.GetPreviousRow(this.owner.
Index
, DataGridViewElementStates.Visible);
2331
dataGridView.CurrentCell = this.owner.Cells[dataGridView.CurrentCell.OwningColumn.
Index
]; // Do not change old selection
2335
int firstVisibleCell = dataGridView.Columns.GetFirstColumn(DataGridViewElementStates.Visible).
Index
;
winforms\Managed\System\WinForms\DataGridViewRowCancelEventArgs.cs (1)
25
Debug.Assert(dataGridViewRow.
Index
>= 0);
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (21)
261
if (dataGridViewRow.
Index
== -1)
660
if (rowTemplate.
Index
== -1 && !this.IsCollectionChangedListenedTo && !newRow)
740
if (rowTemplate.
Index
== -1)
849
Debug.Assert(dataGridViewRow.
Index
== -1);
1450
if (dataGridViewRow.
Index
== -1)
1456
Debug.Assert(dataGridViewRow.
Index
== rowIndex);
1742
if (rowTemplate.
Index
== -1)
1858
Debug.Assert(dataGridViewRow.
Index
== -1);
2048
originalIndex = SharedRow(rowIndex).
Index
;
2051
if (originalIndex == -1 && SharedRow(rowIndex).
Index
!= -1)
2072
originalIndex = SharedRow(rowIndex).
Index
;
2075
if (originalIndex == -1 && SharedRow(rowIndex).
Index
!= -1)
2277
if (dataGridViewRow.
Index
== -1)
2283
RemoveAt(dataGridViewRow.
Index
);
2344
if (dataGridViewRow.
Index
!= -1)
2359
Debug.Assert(dataGridViewRow.
Index
== -1);
2378
if (dataGridViewRow.
Index
!= -1)
2401
if (dataGridViewRow.
Index
== -1)
2491
if (dataGridViewRow1.
Index
!= -1)
2495
if (dataGridViewRow2.
Index
!= -1)
2794
this.sortedColumnIndex = this.dataGridViewSortedColumn.
Index
;
winforms\Managed\System\WinForms\DataGridViewRowEventArgs.cs (1)
24
Debug.Assert(dataGridViewRow.
Index
>= -1);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (4)
1364
if (this.Owner.OwningRow.
Index
== this.Owner.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible))
1370
int nextVisibleRow = this.Owner.DataGridView.Rows.GetNextRow(this.Owner.OwningRow.
Index
, DataGridViewElementStates.Visible);
1393
if (this.Owner.OwningRow.
Index
== this.Owner.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible))
1408
int previousVisibleRow = this.Owner.DataGridView.Rows.GetPreviousRow(this.Owner.OwningRow.
Index
, DataGridViewElementStates.Visible);
winforms\Managed\System\WinForms\DataGridViewSortCompareEventArgs.cs (1)
28
Debug.Assert(dataGridViewColumn.
Index
>= 0);
winforms\Managed\System\WinForms\DataGridViewTextBoxColumn.cs (2)
77
DataGridViewTextBoxCell dataGridViewCell = dataGridViewRow.Cells[this.
Index
] as DataGridViewTextBoxCell;
119
sb.Append(this.
Index
.ToString(CultureInfo.CurrentCulture));
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (2)
653
this.Owner.DataGridView.SetCurrentCellAddressCoreInternal(col.
Index
, row.
Index
, false /*setAnchorCellAddress*/, true /*validateCurrentCell*/, false /*thoughMouseClick*/);
System.WorkflowServices (23)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (23)
167
this.parametersGrid.CurrentCell = this.parametersGrid.Rows[this.parametersGrid.Rows.Count - 2].Cells[this.nameColumn.
Index
];
224
DataGridViewCell currentCell = this.parametersGrid.Rows[combo.EditingControlRowIndex].Cells[this.typeColumn.
Index
];
292
int currentRowIndex = currentRow.
Index
;
298
this.parametersGrid.CurrentCell = currentRow.Cells[this.nameColumn.
Index
];
307
int currentRowIndex = currentRow.
Index
;
313
this.parametersGrid.CurrentCell = currentRow.Cells[this.nameColumn.
Index
];
365
if (e.ColumnIndex == this.nameColumn.
Index
)
370
if (e.ColumnIndex == this.typeColumn.
Index
)
372
if (typeof(void).ToString().Equals(e.FormattedValue) && !(this.parametersGrid.Rows[e.RowIndex].Cells[this.nameColumn.
Index
].Value.Equals(SR2.GetString(SR2.ReturnValueString))))
389
if (this.parametersGrid.CurrentCell.ColumnIndex == this.typeColumn.
Index
)
413
if (!this.parametersGrid.Rows[this.parametersGrid.RowCount - 1].Cells[this.nameColumn.
Index
].Value.Equals(this.ParameterTemplateRowName))
416
editedRow.Cells[this.typeColumn.
Index
].Value = typeof(string);
417
editedRow.Cells[this.directionColumn.
Index
].Value = SR2.GetString(SR2.ParameterDirectionIn);
439
if (e.ColumnIndex.Equals(this.typeColumn.
Index
))
533
returnValueRow.Cells[this.nameColumn.
Index
].ReadOnly = true;
534
returnValueRow.Cells[this.directionColumn.
Index
].ReadOnly = true;
567
int currentRowIndex = currentRow.
Index
;
587
int currentRowIndex = currentRow.
Index
;
704
string name = row.Cells[this.nameColumn.
Index
].Value as string;
705
object typeCell = row.Cells[this.typeColumn.
Index
].Value;
706
string direction = row.Cells[this.directionColumn.
Index
].Value as string;
762
if (row.
Index
== e.RowIndex)
767
if (parameterName.Equals(row.Cells[this.nameColumn.
Index
].Value.ToString()))