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. Image for the cookie policy date

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

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

1 Reply

RA Rajagopal Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon