ListView EnsureVisible v. Groups


Author
Message
Alex Luyando
Alex Luyando
StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 1.2K
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


________________
_____/ Regards,
____/ al
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 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
Alex Luyando
Alex Luyando
StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 1.2K
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.

________________
_____/ Regards,
____/ al
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