Hi
I can't speak English. So I use Google Translate.
Please understand if the explanation is not natural.
I am implementing a function that moves the position of the currently selected row up or down when a button is clicked.
The first selected record moves well.
However, the second selected record is not moved and the position of the first selected record is also changed.
I have attached a gif.
When the second selected record is moved, the first selected record must be in the first row
Any help to me would be appreciated
-My Code-
List selectRecords = await this.gvQuoDtl.GetSelectedRecords();
if (selectRecords.Count > 0)
{
double curIdx = await this.gvQuoDtl.GetRowIndexByPrimaryKey(selectRecords[0].SEQ);
if (curIdx != 0)
{
await this.gvQuoDtl.ReorderRows(curIdx, curIdx - 1);
await this.gvQuoDtl.SelectRow(curIdx - 1);
}
}
Attachment:
ReorderRows_ed33abac.zip