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.
Up arrow icon