我想獲得我的鼠標在任何行的索引,而不一定是從選定的行。如何獲得當鼠標懸停在Radgridview時的行索引
Private Sub RadGridView1_MouseHover(sender As Object, e As EventArgs) Handles RadGridView1.MouseHover
Try
toolidx = RadGridView1.CurrentCell.RowIndex
strphone = dsOrders.Tables(0).Rows(toolidx)("DeliveryPhone")
Catch ex As Exception
RadMessageBox.Show(ex.Message, projectName, MessageBoxButtons.OK, RadMessageIcon.Error)
errlog.WriteLog(ex.Message.ToString, Me.Name, System.Reflection.MethodBase.GetCurrentMethod().Name.ToString())
End Try
End Sub
上面的代碼做了我想要的,但對於選定的行,我希望在鼠標移動到該行時獲取行的索引。誰能幫忙?
[舊telelink](http://www.telerik.com/forums/finding-the-grid-row-item-under-the-mouse-pointer),很可能已經改變,但有代碼在那裏可用於下載 –
答案必須更簡單:( – vicangel