This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, Thanks for your help ... Below is my code for save button and datagrid selection changed event, Private Sub btnSave_Click(ByVal sender As Object, ByVal e As RoutedEventArgs) mViewModel.DataSave()
End Sub Private Sub lstData_SelectionChanged(ByVal sender As Object, ByVal e As SelectionChangedEventArgs)
End Sub how to set the mindscape datagrid to perform <'Position to current item > which it lstData.SelectedIndex = mViewModel.DataCollection.IndexOf(mViewModel.DetailData) lstData.ScrollIntoView(mViewModel.DetailData) i can't get the "ScrollIntoView" and "SelectionChanged" function in mindscape datagrid . Thanks you. yap |
|
|
Hello Yap We do not have a SelectedIndex property, so to set the selected item you can set the SelectedItem property instead. This will have better performance as you will not need to use the IndexOf method. To scroll into view you can use the BringRowIntoView method of the DataGrid, here you can simply pass in mViewModel.DetailData. We did not have a selection changed event, listening to this would normally be done through bindings. I have however added a SelectionChanged event now which you can get through the next nightly build. Jason Fauchelle |
|
|
Hi Jason, Many thanks . |
|