Saving focused row on EnhancedList requery


Author
Message
Andria Jensen
Andria Jensen
Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)
Group: Forum Members
Posts: 336, Visits: 497
I'm doing a requery of an EnhancedList after making some updates to the BO that I have bound to it.  After the requery the focus always jumps to the top of the list.  Is there a way to keep it from doing this and have the focus make sense.  i.e. Focus on a newly added row, focus on the next if one is deleted, and keep current focus on an edit?
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I am sure that there is but you will be better served looking at the DevExpress help.  Off the top of my head I do not know and I would have to look into this myself.  But you should be able to set the focused row and then call a method like EnsureVisible to make sure that it is active.  You can place all of the code to do this in the AfterRequery method.  Also, the control to look at in DevExpresss would be a GridView.  This is the type of view used inside of the grid.  You can access it thought the MainView property on the grid and just CType it as a GridView.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search