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
985
How to get selected row using SelectionChanged event
posted

I would like to display data in panel below the datagrid when user changes selected row by using mouse or arrow keys.

Microsoft datagrid has event "SelectionChanged " works great. but with XamWebGrid, I don't how to do it.

I tried using "SelectedRowsCollectionChanged" event, but I get following error.

_dgSOMaster.SelectedRowsCollectionChanged +=

new EventHandler<Infragistics.Silverlight.SelectionCollectionChangedEventArgs<SelectedRowsCollection>>(_dgSOMaster_SelectedRowsCollectionChanged);

Error 1 The type 'Infragistics.Silverlight.Controls.SelectedRowsCollection' cannot be used as type parameter 'T' in the generic type or method 'Infragistics.Silverlight.SelectionCollectionChangedEventArgs<T>'. There is no implicit reference conversion from 'Infragistics.Silverlight.Controls.SelectedRowsCollection' to 'System.Collections.IEnumerable'. C:\Users\azr\work\appshell\ProcessViewer\SOMaint\View\UserGridView.xaml.cs 58 136 SOMaint

Sorry, new to Silverlight Infragistics control.

Thanks in advance.