StrataFrame Forum

AutoNavigateToSelectedRecord Property on Listview

http://forum.strataframe.net/Topic21453.aspx

By Philipp Guntermann - 1/8/2009

Hi,

i wasnt sure wether to post this in the Winforms or the Data Access Forum.

I have a Listview set up together with a buisness object and a maintance toolstrip. Adding, deleting, and stuff all works fine. Also when selecting an entry within the Listview, the BO will navigate to that row aswell.

Navigating the BO with the maintance Toolstrip works fine aswell, but what it doesnt do is update the selected row within the listview, even tho the listview property AutoNavigateToSelectedRecord is set to true.

Any Idea?

Thanks.

By Greg McGuffey - 1/9/2009

The listview doesn't do this. It navigates the BO when an item is selected, but it doesn't stay in synch when the BO is navigated. You can subclass the listview and make this happen though. I posted a sample that does this:



http://forum.strataframe.net/FindPost14966.aspx



However, this also replicates a lot of what the ListView does now. I have an updated version I'll try to post later today.
By Philipp Guntermann - 1/11/2009

thanks, i will have a look.

sadly i dont have VB-Support installed with Visual Studio. The CD's got somehow lost Smile