We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Click a cell programatically

Thread ID:

Created:

Updated:

Platform:

Replies:

66715 Aug 1,2007 03:44 PM UTC Aug 1,2007 06:03 PM UTC WinForms 1
loading
Tags: GridControl
Philip Bishop
Asked On August 1, 2007 03:44 PM UTC

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

haneefm [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;