Ellipsis Cell

I have a grid with elipsis cell button and when user clicks on that button it popup a form to search and select a data. This data is then populated in the elipsis cell. The problem is when i click the cell button the focus is not changing to cell containing the cell button. I have to click on the cell containing the ellipsis button and then ellipis button itself to make this work. How do i solve the problem

thanks

shankar

1 Reply

AD Administrator Syncfusion Team February 26, 2007 03:18 PM UTC

Hi Shankar,

Try calling the CurrentCell.MoveTo method in CellButtonClicked event of the Grid. Here is a code snippet.

this.gridControl1.CellButtonClicked +=new GridCellButtonClickedEventHandler(gridControl1_CellButtonClicked);

private void gridControl1_CellButtonClicked(object sender, GridCellButtonClickedEventArgs e)
{
GridCurrentCell cc = (sender as GridControl).CurrentCell;
cc.MoveTo(e.RowIndex,e.ColIndex,GridSetCurrentCellOptions.SetFocus);
}

Best regards,
Haneef

Loader.
Up arrow icon