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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I simulate a click programatically in a gridcontrol cell?

Thread ID:

Created:

Updated:

Platform:

Replies:

68155 Sep 10,2007 11:48 PM UTC Sep 12,2007 02:13 AM UTC WinForms 1
loading
Tags: GridControl
James Blibo
Asked On September 10, 2007 11:48 PM UTC

How do I simulate a click programatically in a gridcontrol cell?
CurrentCell.Activate or CurrentCell.MoveTo doesn't seem to work.

Rajagopal [Syncfusion]
Replied On September 12, 2007 02:13 AM UTC

Hi James,

There is a static helper method name Syncfusion.Drawing.ActiveXSnapshot.FakeLeftMouseClick that simulates a left-click. This will help you to perform the click. Please try the below code.

Point pt = this.gridControl1.RangeInfoToRectangle(GridRangeInfo.Cell(1, 1)).Location;
Syncfusion.Drawing.ActiveXSnapshot.FakeLeftMouseClick(this.gridControl1, pt);

Regards,
Rajagopal

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.

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

;