Thanks for your reply. I am using Visual Basic and have the following code (derived from the C# code you provided and where gridReceipts is a sfdatagrid).
Private Sub gridReceipts_CellClick(sender As Object, e As CellClickEventArgs) Handles gridReceipts.CellClick
If e.MouseEventArgs.Button = MouseButtons.Right Then
Dim rowColumnIndex = gridReceipts.TableControl.PointToCellRowColumnIndex(e.MouseEventArgs.Location)
I get the following error: Option Strict On requires all variable declarations to have an 'As' clause
I cannot use the type 'RowColumnIndex' (as specified in your example for sfdatagrid online help) and if I do the compiler throws an error. (Type 'RowColumnIndex' is not defined.
Could you please advise what type I should use in the 'as' clause?
I have references to