Hi,
i've an application with XamDataGrid.
I've implemented navigation with button that call the ExecuteCommand with recordprevious and recordnext.
If i use my button for navigate and then i click with mouse on the grid for navigate, the grid keep marked the last record that i navigate with button until i use another time my buttons.
Thank's, Luca
Hello,
I recently saw a forum thread very similar to what you have, and the solution there was to call
xamDataGrid1.UpdateLayout();
after executing the command. Is this working for you?
I set the initial position of the grid when the window load with:
DG_Campioni.ActiveRecord = DG_Campioni.Records[0];
Then, when i navigate the grid with the mouse or the keyboard the first row remain selected until i move with my button that call:
DG_Analisi.ExecuteCommand(DataPresenterCommands.RecordPrevious);
DG_Analisi.ExecuteCommand(DataPresenterCommands.RecordNext);
Thanks
Hello Luca,
I don't think I understand where the problem is. Please give me little bit more information or maybe a sample project illustrating the problem to take a closer look. I also created a xamDataGrid with 2 buttons ( respectivly DataPresenterCommans.RecordPrevious and DataPresenterCommands.RecordNext ) and everything is ok and works like expected.
Alex.