Hi,
I have the following requirements:
Is this possible to do?
Thanks,
Harold
Hello Harold,
I have been looking into your question and I can suggest you handle the ‘PreviewMouseLeftButtonUp’ event of the XamDataGrid and set the ‘ActiveRecord’ to the first item from the SelectedItems like e.g :
private void xamDataGrid1_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
Record active = this.xamDataGrid1.SelectedItems.FirstOrDefault() as Record ;
this.xamDataGrid1.ActiveRecord = active;
}
If you have any other questions on this matter, feel free to ask.
Thanks for the help Yanko!
I just tried your suggestion. Is it possible not to change the active record at all? What I need is the active record not to change while more items are getting selected.