BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//click cell 4,4
this.gridControl1.Focus();
Point pt = this.gridControl1.ViewLayout.RowColToPoint(4, 4, true, GridCellSizeKind.ActualSize);
pt.Offset(3,3); //move it a little
Syncfusion.Drawing.ActiveXSnapshot.FakeLeftMouseClick(this.gridControl1, pt);
>//click cell 4,4
>this.gridControl1.Focus();
>Point pt = this.gridControl1.ViewLayout.RowColToPoint(4, 4, true, GridCellSizeKind.ActualSize);
>pt.Offset(3,3); //move it a little
>Syncfusion.Drawing.ActiveXSnapshot.FakeLeftMouseClick(this.gridControl1, pt);
>
//A) in the EllipsisCellRenderer class
//1) add a button member and assign it in teh constructor
private EllipsisCellButton button;
public EllipsisCellRenderer(GridControlBase grid, GridTextBoxCellModel cellModel)
: base(grid, cellModel)
{
this.button = new EllipsisCellButton(this);
AddButton(this.button);
}
//2) add this public method method
public void PerformClick()
{
this.button.PerformClick(new GridCellEventArgs(this.RowIndex, this.ColIndex));
}
//B) in the EllipsisCellButton class, add this method
public void PerformClick(GridCellEventArgs e)
{
base.OnClicked(e);
}
//C) here is the code that clicks it
this.gridControl1.Focus();
EllipsisCellRenderer cr = this.gridControl1.CurrentCell.Renderer as EllipsisCellRenderer;
if(cr != null)
cr.PerformClick();