This question is locked. New answers and comments are not allowed.
Hi
I update a row and save in the DB.
I populate the grid with new data.
How to return to the current row i updated in the RadGridView ?
The focus doesn't work only selected item
I successfully obtain the current dataSourceIndex
int dataSourceIndex ;
private void OnEditEnded(object sender, RecordRoutedEventArgs e)
{
DataRecord record = e.Record as DataRecord;
dataSourceIndex = record.DataSourceIndex;
}
but how to focus on the selected item ?
void client_GetOwnerCompleted(object sender, GetOwnerCompletedEventArgs e)
{
List<Owner> list = e.Result.OrderBy(Owner => Owner.Project).OrderBy(Owner => Owner.Customer).ToList();
ownerGrid.ItemsSource = list;
ownerGrid.SelectedItem = list[dataSourceIndex];
}
Thanks in advance
Fred
I update a row and save in the DB.
I populate the grid with new data.
How to return to the current row i updated in the RadGridView ?
The focus doesn't work only selected item
I successfully obtain the current dataSourceIndex
int dataSourceIndex ;
private void OnEditEnded(object sender, RecordRoutedEventArgs e)
{
DataRecord record = e.Record as DataRecord;
dataSourceIndex = record.DataSourceIndex;
}
but how to focus on the selected item ?
void client_GetOwnerCompleted(object sender, GetOwnerCompletedEventArgs e)
{
List<Owner> list = e.Result.OrderBy(Owner => Owner.Project).OrderBy(Owner => Owner.Customer).ToList();
ownerGrid.ItemsSource = list;
ownerGrid.SelectedItem = list[dataSourceIndex];
}
Thanks in advance
Fred