Grid中,高亮选中的行

时间:2025-02-08 08:03:14

法一:在DW的clicked事件中加入

if GetSelectedRow(row - 1)=row then
 SelectRow(row,false)
else
 SelectRow(0,false)
 SelectRow(row,true) 
end if

法二:在DW的rowfocuschanged事件中加入

Long ll_row = 0

ll_row=()
If ll_row>0 Then
   (0,False)
   (ll_row,True)
End If