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
430
Performing functions on grid from clickcellbutton event.
posted

I have a grid with rows of data, as well as 2 rows with buttons to add different types of items to the data behind the grid.

When the button is clicked, the event fires to show a dialog box collecting certain information.  Once the information is entered, the dialog box is closed, the data is updated.  The grid refreshes appropriately and an iteration of the rows results in finding the newly added row.

I want to scroll this new row into view, activate a cell and enter edit mode for that cell.

Unfortunately, none of the desired actions occur and the grid stays with the cell I clicked as the active cell.  I'm assuming this somehow has to do with the fact that it is called from a button click within the grid, rather than from a toolbar.  Is there some way to call the actions after the clickcellbutton is completed?

These are the actions called after the new row is found:

UltraGrid1.ActiveRowScrollRegion.ScrollRowIntoView(row)
UltraGrid1.ActiveRow = row
UltraGrid1.ActiveCell = row.Cells("Low")

UltraGrid1.PerformAction(UltraGridAction.EnterEditMode)

I appreciate any assistance that can be provided.