Click a cell programatically

How can I cause a cell click to happen in the code? I have one col that the user can click and when they do it highlights the whole row. When they click one of those cells in that col then its currentcell.row gets updated to the row that is clicked automatically. How can I do a cell click in the code. It's always going to be cell(1,0). We code in VB.net

Thanks
Phil

1 Reply

HA haneefm Syncfusion Team August 1, 2007 06:03 PM UTC

Hi Phil,

If you want to simulate an actual click on cell 1,0, the below code snippet does that. It uses a utility method to do the fake click.

Dim pt As Point = grid.ViewLayout.RowColToPoint(1, 0)
pt.Offset(2, 2)
Syncfusion.Drawing.ActiveXSnapshot.FakeLeftMouseClick(grid, pt)

Best regards,
Haneef

Loader.
Up arrow icon