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.
Hi Yanko,
Thanks for helping. I'm good for now.
Hello,
I am just checking if you require any further assistance on the matter.
Currently this is the only approach that I can provide. The ‘ActiveRecord’ by default stored the last activated record.