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
325
Set focus to default 'add-row' in UltraGrid
posted

I want to set focus to the default 'add-row' in an UltraGrid and put that row in edit mode. How can I access this row? In the documentation this row is referred to as the template add-row and allows the user to add a new row by simply typing into it.

Thanks in advance. 

Jay 

Parents
No Data
Reply
  • 5118
    posted

    Hello Jay,

     I acheived that functionality as follows:

    this.ultraGrid1.Rows.TemplateAddRow.Activate();

    if (this.ultraGrid1.ActiveRow.Cells[0].CanEnterEditMode)

    {

        this.ultraGrid1.ActiveRow.Cells[0].Activate();

        this.ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode, false, false);

    }

Children
No Data