StrataFrame Forum

ListView EnsureVisible v. Groups

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

By Alex Luyando - 6/15/2009

Hi all!



I have four forms that contain listViews, and am using myListView.EnsureVisible( myListViewItem.Index ) to show the user the row they just "found" based on some search thingie I've set up. On two of the forms the listViews have Groups set up to organize records by dates, and on there other two there are no listView Groups.



As you might have guessed from this post' description, I am seeing the listViews with no groups nicely showing the row the user finds, but on the two listViews with Groups the highlighted row always seems to be a bit further up than the set of rows shown in the listView.



Has anyone else seen behavior like this?



FYI - I have also tried setting myListview.TopItem, but that doesn't change the results.



TIA
By Trent L. Taylor - 6/15/2009

I use groupos quite a bit and I have not yet run into this. I will have to try and set this up. It very well could be a Microsoft issue...the SF ListView inherits from the .NET ListView. We have a new version coming out in a version or two (you can play with the beta in the 1.7 build coming out soon) so that we have complete control and can avoid issues like this. When it is an MS issue, it is usually easiest to find another solution! BigGrin
By Alex Luyando - 6/15/2009

Trent L. Taylor (06/15/2009)
I use groupos quite a bit and I have not yet run into this. I will have to try and set this up. It very well could be a Microsoft issue...the SF ListView inherits from the .NET ListView. We have a new version coming out in a version or two (you can play with the beta in the 1.7 build coming out soon) so that we have complete control and can avoid issues like this. When it is an MS issue, it is usually easiest to find another solution! BigGrin




LOL. Super! I won't lose any sleep over this one in the meantime!



Thanks, Trent.