Hi,
How can I enable grid to auto select first row once it is there? It also needs to auto select first available row whenever I filter or repopulate data.
Thanks
Michael
Hi Petar,
Thank you for your help. I added extra check as it should set selection only once (not every time records get changed).
if (SelectedItems.Records.Count == 0)
ExecuteCommand(
DataPresenterCommands.RecordFirstOverall);
ITG
Hello Michael,
I have been looking into this for you and the simplest way I could think of, that would provide you with the desired behavior for both scenarios, is to use the XamDataGrid’s ExecuteMethod on the RecordsInViewChanged like so:
private void xamDataGrid1_RecordsInViewChanged(object sender,RecordsInViewChangedEventArgs e)
{
xamDataGrid1.ExecuteCommand(DataPresenterCommands.RecordFirstOverall);
}
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support