private void SortColumn(object sender, DataGridViewCellMouseEventArgs e) { var columnName = _view.GridView.Columns[e.ColumnIndex].Name; // type "Image" doesn't implement "IComparable", so we need to sort by the outcome instead if (columnName == RubberduckUI.Result) { columnName = RubberduckUI.Outcome; } _view.AllTests = new BindingList <TestExplorerItem>(_gridViewSort.Sort(_view.AllTests.AsEnumerable(), columnName).ToList()); }
private void SortColumn(object sender, DataGridViewCellMouseEventArgs e) { var columnName = TodoMarkersGridView.Columns[e.ColumnIndex].Name; TodoMarkers = new BindingList <ToDoMarker>(_gridViewSort.Sort(TodoMarkers.AsEnumerable(), columnName).ToList()); }
private void SortColumn(object sender, DataGridViewCellMouseEventArgs e) { var columnName = _view.GridView.Columns[e.ColumnIndex].Name; _view.TodoItems = _gridViewSort.Sort(_view.TodoItems, columnName); }
private void SortColumn(object sender, DataGridViewCellMouseEventArgs e) { var columnName = codeInspectionsGrid.Columns[e.ColumnIndex].Name; AllInspections = new BindingList <CodeInspectionSetting>(_gridViewSort.Sort(AllInspections.AsEnumerable(), columnName).ToList()); }
private void SortColumn(object sender, DataGridViewCellMouseEventArgs e) { var columnName = Control.GridView.Columns[e.ColumnIndex].Name; if (columnName == "Icon") { columnName = "Severity"; } Control.InspectionResults = new BindingList <CodeInspectionResultGridViewItem>(_gridViewSort.Sort(Control.InspectionResults.AsEnumerable(), columnName).ToList()); }