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
210
How do I enter values into a column on a xamdatagrid and get acceptable behaviour - getting started
posted

I am using xamdatagrid in a number of places in my application, which is MVVM.  I am binding to an asynchronous collection. and I can pick up SelectedCollectionItemin my view model.

My column is defined as 

<ig:Field Label="Pick Qty"
AlternateBinding="{Binding Quantitypicked, Mode=TwoWay}" >
<ig:Field.Settings>
<ig:FieldSettings AllowHiding="Default" AllowEdit="True" Width="100" IsAutoEditModeEnabled="True" />
</ig:Field.Settings>
</ig:Field>

I have a user control which displays a grid of data in the SelectedColletionItem beside the xamDataGrid

This allows me to edit the value but I need some help to get it to work as I require.

When I edit the value I haev to press ENTER to complete the entry, which is fine.  however my view model isn;t aware that anything has happened - the SelectedCollectionItem set property in the VM is not called.    So teh data grid beside the XaDataGrid is not updated with eth value I have just entered.

But if I move off the current row in teh Xamdata grid and return to it, the dfta agrid is refreshed with the value i just entered.  

That makes sense to me.  I just need to be able to update my SelectedCollection Item when an entry is made in to the list.

Also I would like to be able to move onto the next row in the XamDataGrid, in the same column, exactly as if I had pressed downarrow,

I have no idea where to start with this, but the documentation does seem to imply its possible.  I just don;t understand it