Click here to Skip to main content
15,907,281 members
Home / Discussions / C#
   

C#

 
QuestionListView.TopItem property - help needed Pin
eyalbi00720-Jan-08 23:24
eyalbi00720-Jan-08 23:24 
GeneralRe: ListView.TopItem property - help needed Pin
CPallini21-Jan-08 0:09
mveCPallini21-Jan-08 0:09 
GeneralRe: ListView.TopItem property - help needed Pin
eyalbi00721-Jan-08 0:14
eyalbi00721-Jan-08 0:14 
QuestionRe: ListView.TopItem property - help needed Pin
CPallini21-Jan-08 0:30
mveCPallini21-Jan-08 0:30 
GeneralRe: ListView.TopItem property - help needed Pin
eyalbi00721-Jan-08 0:38
eyalbi00721-Jan-08 0:38 
GeneralRe: ListView.TopItem property - help needed Pin
CPallini21-Jan-08 0:53
mveCPallini21-Jan-08 0:53 
GeneralRe: ListView.TopItem property - help needed Pin
Luc Pattyn21-Jan-08 1:16
sitebuilderLuc Pattyn21-Jan-08 1:16 
GeneralRe: ListView.TopItem property - help needed Pin
DaveyM6921-Jan-08 0:14
professionalDaveyM6921-Jan-08 0:14 
Working with automatically assigned indexes can be unreliable if controls are being updated as the index will change on each update.

The solution is: as each item is created, give them a unique id of your own and put it in the tag property. Make sure that the item's id will ALWAYS be the same. Before updating the list view, store the required item's tag value - (int)Tag (the Tag holds an object so will need casting).

When updating the list view, as each item is added, check if its id is the same and store the index that is auto-assigned to it. Then, after the update is finished, use the EnsureVisible method on that item's index.
GeneralRe: ListView.TopItem property - help needed Pin
eyalbi00721-Jan-08 0:19
eyalbi00721-Jan-08 0:19 
QuestionRemoving Databinding Pin
thachil20-Jan-08 22:47
thachil20-Jan-08 22:47 
GeneralRe: Removing Databinding Pin
J a a n s21-Jan-08 0:50
professionalJ a a n s21-Jan-08 0:50 
GeneralRe: Removing Databinding Pin
thachil21-Jan-08 17:31
thachil21-Jan-08 17:31 
GeneralUploading Pin
razanabanu20-Jan-08 22:15
razanabanu20-Jan-08 22:15 
GeneralRe: Uploading Pin
Guffa20-Jan-08 22:36
Guffa20-Jan-08 22:36 
GeneralChange system date style formate through code Pin
Naveed72720-Jan-08 22:01
Naveed72720-Jan-08 22:01 
GeneralRe: Change system date style formate through code Pin
Pete O'Hanlon21-Jan-08 2:02
mvePete O'Hanlon21-Jan-08 2:02 
GeneralRe: Change system date style formate through code Pin
PIEBALDconsult21-Jan-08 3:23
mvePIEBALDconsult21-Jan-08 3:23 
GeneralAdd an icon to dll in runtime Pin
Naveed72720-Jan-08 21:59
Naveed72720-Jan-08 21:59 
GeneralRe: Add an icon to dll in runtime Pin
Ed.Poore20-Jan-08 22:45
Ed.Poore20-Jan-08 22:45 
GeneralBest way to read the following XML Pin
N a v a n e e t h20-Jan-08 21:24
N a v a n e e t h20-Jan-08 21:24 
GeneralRe: Best way to read the following XML Pin
stancrm20-Jan-08 21:53
stancrm20-Jan-08 21:53 
GeneralRe: Best way to read the following XML Pin
N a v a n e e t h20-Jan-08 22:09
N a v a n e e t h20-Jan-08 22:09 
GeneralRe: Best way to read the following XML Pin
Guffa20-Jan-08 22:41
Guffa20-Jan-08 22:41 
GeneralRe: Best way to read the following XML Pin
N a v a n e e t h20-Jan-08 22:49
N a v a n e e t h20-Jan-08 22:49 
GeneralCasting and "as" operator Pin
DavidNohejl21-Jan-08 2:01
DavidNohejl21-Jan-08 2:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.