Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3455
Editing cell
posted

Hi,

How to set the WinGrid cell to be edited only when the user double clicks the cell.When I set the cell property toCellClickAction.EditAndSelectText;

The cell can be edited by using a single click.

 

Regards,

 Pgr2007

 

Parents
  • 37774
    posted

    One approach would be to set the CellClickAction to CellSelect or RowSelect and use the DoubleClickCell event to put the cell into edit mode, such as:

     private void ultraGrid1_DoubleClickCell(object sender, DoubleClickCellEventArgs e)
    {
        e.Cell.Activate();
        this.ultraGrid1.PerformAction(UltraGridAction.EnterEditMode);
    }

    -Matt

Reply Children