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
733
Can't get rowedittemplate to open for new row
posted

I created a rowedittemplate for a band in my grid and set the rowedittemplate property for that band.  In the code, I have the following code for a button click:

 

 

 

Dim newRow As UltraGridRow = gridTransaction.DisplayLayout.Bands(2).AddNew()

gridTransaction.ActiveRow = newRow

 

The rowedittemplate never appears.  Then I tried just clicking on the row selector, in the cells, and anywhere else and it still won't appear.  The grid is letting me edit the row directly but I want to use the template. The rowedittemplateuitype for the band is set to onenteredit mode. Any help would be appreciated.

Parents
  • 469350
    Offline posted

    So there are a few things you can try:

    1. Set focus to the grid before you add the new row.
    2. Instead of setting the ActiveRow, set the ActiveCell to the first cell in that row.
    3. After you set the ActiveCell, call PerformAction(EnterEditMode) to enter edit mode on that cell.
    4. If all of that still doesn't work, you can simply call ShowEditTemplate on the row.
Reply Children