* UIDataGridView: 更新单选时选中值SelectedIndex值

This commit is contained in:
Sunny 2022-02-27 22:04:59 +08:00
parent a6b6da2629
commit afd9b059da
3 changed files with 1 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -600,10 +600,7 @@ namespace Sunny.UI
{
get
{
if (SelectedRows.Count > 0)
return SelectedRows[0].Index;
else
return -1;
return CurrentRow != null ? CurrentRow.Index : -1;
}
set
{