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
50
Refreshing when data source is chnged
posted

Ok here is some background to my setup.

I have a WinForms App which takes to a Backend via RestAPI. In this case the user searches for some data and
we send of Rest Query to Server and get Data Back in Json. We then populate a Data Class and pass it to a new
Window which has the Ultra Grid on it. All works fine for the initial query. If i send updated Data to that form my class
shows the correct count but the grid never updates.

Here is how i declare my Data on Form

Public myData As New List(Of CustomerData.Customer_Search_Result)

on Form Load i bind Grid to Data

ugCustomerSearchResult.DataSource = myData

i tried

ugCustomerSearchResult.Rows.Refresh(RefreshRow.ReloadData)

only thing that works for me is to unbind and rebind but i doubt that's a good approach

ugCustomerSearchResult.DataSource = Nothing
ugCustomerSearchResult.DataSource = myData

So how can i either have the Grid reload if the myData changes automatically or if that's not possible how to tell grid to
reload / refresh the data

Parents
  • 18204
    Offline posted

    Hello,

    Thank you for posting in our forums!

    When you are updating your data, how are you achieving this? Are you creating a new instance of a List, or updating the values within myData?

    Is there a more complete code snippet of this functionality you can provide that will help me better understand the use case?

    Looking forward to hearing from you.

Reply Children