'DevExpressGridView: How to select the first row after sorting it by descending order
Suppose you have a GridView(DevExpress), How do you select the first row after sorting?
gridView1.OptionsBehavior.KeepFocusedRowOnUpdate = false;
colCreatedDate.SortIndex = 0;
colCreatedDate.SortOrder = DevExpress.Data.ColumnSortOrder.Descending;
This thing doesn't work it only select the first row before the sorting happens.
gridView1.Columns.View.MoveFirst();
gridView1.FocusedRowHandle = 1;
gridView1.FocusedColumn = colCreatedDate;
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
