41 references to DataGridViewColumnSortMode
System.Windows.Forms (38)
winforms\Managed\System\WinForms\DataGridView.cs (2)
4754
if (dataGridViewColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic)
6993
if (dataGridViewColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic)
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
4813
if (AccessibilityImprovements.Level3 && owner.OwningColumn.SortMode !=
DataGridViewColumnSortMode
.NotSortable)
winforms\Managed\System\WinForms\DataGridViewColumn.cs (8)
944
DefaultValue(
DataGridViewColumnSortMode
.NotSortable),
948
public
DataGridViewColumnSortMode
SortMode
954
return
DataGridViewColumnSortMode
.Automatic;
958
return
DataGridViewColumnSortMode
.Programmatic;
962
return
DataGridViewColumnSortMode
.NotSortable;
969
if (value !=
DataGridViewColumnSortMode
.NotSortable)
973
value ==
DataGridViewColumnSortMode
.Automatic &&
979
if (value ==
DataGridViewColumnSortMode
.Automatic)
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (8)
92
if (this.OwningColumn.SortMode ==
DataGridViewColumnSortMode
.NotSortable && value != SortOrder.None)
574
this.OwningColumn.SortMode !=
DataGridViewColumnSortMode
.NotSortable)
594
this.OwningColumn.SortMode !=
DataGridViewColumnSortMode
.NotSortable)
670
this.OwningColumn.SortMode !=
DataGridViewColumnSortMode
.NotSortable)
827
if (this.OwningColumn != null && this.OwningColumn.SortMode !=
DataGridViewColumnSortMode
.NotSortable ||
940
if (this.OwningColumn != null && this.OwningColumn.SortMode !=
DataGridViewColumnSortMode
.NotSortable)
1287
if (this.Owner.OwningColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic)
1398
if (dataGridViewCell.OwningColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic)
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (1)
343
if (column.SortMode ==
DataGridViewColumnSortMode
.NotSortable)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (15)
3334
return dataGridViewColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic && (!VirtualMode || dataGridViewColumn.IsDataBound);
3339
return dataGridViewColumn.SortMode !=
DataGridViewColumnSortMode
.NotSortable && (!VirtualMode || dataGridViewColumn.IsDataBound);
10644
if (dataGridViewColumn.SortMode !=
DataGridViewColumnSortMode
.NotSortable &&
10902
dataGridViewColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic &&
10906
throw new InvalidOperationException(SR.GetString(SR.DataGridViewColumn_SortModeAndSelectionModeClash,
DataGridViewColumnSortMode
.Automatic.ToString(), this.SelectionMode.ToString()));
11025
dataGridViewColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic &&
11029
throw new InvalidOperationException(SR.GetString(SR.DataGridViewColumn_SortModeAndSelectionModeClash,
DataGridViewColumnSortMode
.Automatic.ToString(), this.SelectionMode.ToString()));
14739
if (dataGridViewColumn.SortMode ==
DataGridViewColumnSortMode
.NotSortable ||
14740
(dataGridViewColumn.SortMode ==
DataGridViewColumnSortMode
.Programmatic && this.SortedColumn == dataGridViewColumn))
15864
dataGridViewColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic &&
15868
throw new InvalidOperationException(SR.GetString(SR.DataGridViewColumn_SortModeAndSelectionModeClash,
DataGridViewColumnSortMode
.Automatic.ToString(), this.SelectionMode.ToString()));
17593
this.Columns[i].SortMode !=
DataGridViewColumnSortMode
.NotSortable &&
19509
this.Columns[i].SortMode !=
DataGridViewColumnSortMode
.NotSortable &&
28258
this.sortedColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic &&
28269
if (dataGridViewColumn.SortMode ==
DataGridViewColumnSortMode
.Automatic && dataGridViewColumn.HasHeaderCell)
winforms\Managed\System\WinForms\DataGridViewTextBoxColumn.cs (3)
25
this.SortMode =
DataGridViewColumnSortMode
.Automatic;
90
DefaultValue(
DataGridViewColumnSortMode
.Automatic)
92
public new
DataGridViewColumnSortMode
SortMode
System.WorkflowServices (3)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (3)
616
nameColumn.SortMode =
DataGridViewColumnSortMode
.NotSortable;
625
typeColumn.SortMode =
DataGridViewColumnSortMode
.NotSortable;
640
directionColumn.SortMode =
DataGridViewColumnSortMode
.NotSortable;