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
245
How to capture data from the datagrid
posted

I want to capture a row from the xamDataGrid, and send it on to another class to do work.

the xamDataGrid.SelectedItems.Records just return the index to the array showing which row was selected, along with the information from the first column (what you call field).

Questions?

1. What is included in the xamDataGrid.SelectedItems.Records that were returned?

2. How do I access all of its members?

3. How or where on this site can I read about how to do this?

Thanks

  • 2180
    Suggested Answer
    Offline posted

     

    Hi jack520,

     

    If you want to get the data in the record you can cast the Record to DataRecord and get the DataItem property. For example:

    (xamDataGrid.SelectedItems.Records[0] as DataRecord).DataItem

     

    Thanks,

    Diyan Dimitrov