protected override void SortColumns() { UpgradeDataGridViewRow firstRow = Rows[0] as UpgradeDataGridViewRow; if (firstRow == null) { return; } if (columnToBeSortedIndex == firstRow.NameCellIndex || columnToBeSortedIndex == firstRow.DescriptionCellIndex || columnToBeSortedIndex == firstRow.VersionCellIndex) { SortAndRebuildTree(new CollapsingPoolHostRowSorter <UpgradeDataGridViewRow>(direction, columnToBeSortedIndex)); } }
protected override void SortAdditionalColumns() { UpgradeDataGridViewRow firstRow = Rows[0] as UpgradeDataGridViewRow; if (firstRow == null) { return; } if (columnToBeSortedIndex == firstRow.DescriptionCellIndex) { SortAndRebuildTree(new UpgradeDataGridViewDescriptionSorter(direction)); } if (columnToBeSortedIndex == firstRow.VersionCellIndex) { SortAndRebuildTree(new UpgradeDataGridViewVersionSorter(direction)); } }