Hi everyone
I was hoping that someone could advice me on how to setup the correct bindings in a small example to make a textbox bind to xamDataGrid selected Item? For example if user clicks a record then data from that record could be loaded into a form where data could be edited?
Thank you
I feel llike I am a pest. But wish not to waste your time. I resolved this issue xaml below
SelectedValuePath
="ID" SelectedValue="{Binding Path=ActiveRecord.DataItem.User_Position, ElementName=xamDataGrid1, Mode=OneWay}"
Hi Vlad
All good with the textbox's but I cant manage to do the same with a combo. Do you have any ideas?
I have tried to set the selectedValue, then selectedItem to {Binding Path=ActiveRecord.DataItem.Position, ElementName=myGrid}
But no dice?
I got it with the below syntax - thats for your help on this issue
<
=OneWay}" />
Thanks Vlad
I was binding the xamDataGrid to a data table and not a custom class. The name column would be a field in the data table, the selected data row. So far by doing what i have, it hasnt worked?
The ActiveDataItem will return the associated data object based on the active record in the grid. So if you have a Name property defined in your class then this should work fine after selecting a record.