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
1445
How set add row active?
posted

I have a grid that has a lot of information. I want to add a button that will put the cursor in the add row on my grid. How can I do this?

 

Parents
No Data
Reply
  • 20872
    Suggested Answer
    Offline posted

    Hello Apalcer,

    Assuming that you are using TemplateAdd Row in your UltraGrid control, and you would like to enter edit mode in the first cell on it, when you press some UltraButton that is placed on the form, you could do so in the Click event of the UtlraButton like:

     private void ultraButton1_Click(object sender, EventArgs e) 
     {
        ultraGrid1.Focus();
        ultraGrid1.Rows.TemplateAddRow.Cells[0].Activate();
        ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode);
      }

    If you have any other questions please feel free to let us know.

Children
No Data