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
960
Binding ActiveItem
posted

I'm trying to understand how to do the things I'm used to do using the Windows Forms Ultragrid...

searching what I wrote on the subject finds only things on the XamDataGrid not related.

I need to know the ActiveRow of the Grid, and seeing that there is an ActiveItem 

While in Windows Forms usually I search for the ActiveRow property, with standard WPF list control there is a SelectedItem or an ActiveItem that I can Simply bind to a property on my Model with a Two Way mode, this allows me to get the selected item reading the property and set the selected item changing that property.

I've tried a direct binding of ActiveItem on a property (this kind of binding on a ListBox standard works) 

but here I probably do something wrong because my property is never accessed 

<ig:XamGrid Name="namesGrid" Grid.Column="2"  Grid.Row="1" Margin="0" 
AutoGenerateColumns="False"  ItemsSource="{Binding Path=SelectedNamesList}" 
ActiveItem="{Binding Path=SelectedName, Mode=TwoWay}" ColumnWidth="*" >

if you have any clue

thank you in advance