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
4970
How to set Row data dynamically?
posted

Suppose XamGrid is bound to ObservableCollection<Person>.

Then I want to user able to put personid in ID column and populate other data like firstname, lastname from database with ria service.

For example, user can input 123 in ID column, then John Smith will retrieved from database and put in column for FirstName and LastName.

How to implemen this? I try to write code in event XamGrid_CellExitedEditMode, but  e.Cell.Row.Data is not accessible.

 

Parents
No Data
Reply
  • 12631
    Verified Answer
    posted

    If I were you I would implement the logic to fetch the additional data in the setter of the ID property, then when the data is returned simply update the Firstname and LastName properties.  If the FirstName and LastName properties of your model implement INPC then the grid will automatically update when you change them

    Devin

Children