So I have a datagrid. When a row is doubleclicked the value is passed to the MVVM.
List Implementation:
private List<Object> _AllQueries { get; set; }
public List<Object> AllQueries { get { return _AllQueries; } set { _AllQueries = value; this.NotifyOfPropertyChange(() => AllQueries); } }
Datagrid Implementation:
<telerik:RadGridView SelectedItem="{Binding SelectedItem}" ItemsSource="{Binding AllQueries, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" AutoGenerateColumns="True">
Implementation of SelectedItem
public Object SelectedItem { get; set; }
When I put a breakpoint where SelectedItem is used it's working perfectly, the values are being brought. But my question is How do i interact with those Columns
or Properties
using (var ctx = DB.Get()) i = ctx.Interactions.Find(SelectedItem2);
Examples of what SelectedItem would be:
Id = 200
Date = 4/24/2014
Name = "Billy Bob"
Is there a way to index through the properties of an object something like SelectedItem[0] would give me the Id Number.