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
1225
Refresh Grid Row when updated outside the grid
posted

I have an UltraGrid (CustomerGrid)  on the left portion of the screen which allows the user to scroll through customers.  On the right side is a tabbed container containing different tabs related to the current customer selected in the CustomerGrid.  One tab (CustomerEditTab) allows the user to view and/or edit details about the customer selected in the CustomerGrid.  The fields on the CustomerEditTab panel are bound to the same bindingsource as CustomerGrid.  As the use clicks on different customers in CustomerGrid, all the details about the customer are viewable and editable in CustomerEdit Tab to the right.

When the customer data is updated (i.e the Customers name is changed), the changes are not reflected in CustomerGrid unless I reload the grid. I expected the BindingSource to "notify" the grid of the update.

I tried CustomerGrid.selected.rows(0).refresh() but it did not update the grid row in CustomerGrid.  How can I refresh the grid row?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    You are correct in that, if a user edits a TextBox that is bound to a field the grid is displaying, when the TextBox is edited, the grid should receive an update notification from the BindingManager.

    If the other controls are updating based on the active row in the grid, then updating a field in the other controls should update the grid display automatically. If that's not happening, then the only reason I can think of is that the control being updated is not sending a notification.

    So what control(s) are you using to update the data? What properties are you binding? When exactly are you expecting the data to be updated?

Children