This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, Good day to you , Below is my data grid binding,
I try to set DataGrid.SelectedItem instead in mindscape data grid but it does't work . I can't get the DataGrid.SelectedValue from mindscape data grid , is there other way to perform same function as SelectedValue in mindscape data grid ? Thanks . Yap |
|
|
Hello Yap The SelectedItem property is indeed the property you need, though I am not sure why it is not working in your scenario. Make sure the SelectedItem is one of the items added to the ItemsSource of the DataGrid. If you are still having trouble with this, please send me a repro project and I'll resolve the issue for you. Jason Fauchelle |
|
|
Hi Jason, Attached is sample source code that mindscape data grid for SelectedItem does't perform as VS data grid SelectedValue . Thanks . Yap |
|
|
Thanks for the repro project The reason this wasn't working is because our SelectedItem property does not bind two ways by default. To resolve this, simply set the Mode of the SelectedItem binding to be TwoWay. Jason Fauchelle |
|
|
Thanks you . |
|