Click here to Skip to main content
15,924,581 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding a line break Pin
PIEBALDconsult21-Jan-08 15:55
mvePIEBALDconsult21-Jan-08 15:55 
GeneralC# map network dirve Pin
Burim Rama21-Jan-08 0:51
Burim Rama21-Jan-08 0:51 
GeneralRe: C# map network dirve Pin
Vasudevan Deepak Kumar21-Jan-08 0:53
Vasudevan Deepak Kumar21-Jan-08 0:53 
Generalsqlncli.dll problam Pin
sekhar200820-Jan-08 23:58
sekhar200820-Jan-08 23:58 
GeneralRe: sqlncli.dll problam Pin
Colin Angus Mackay21-Jan-08 0:08
Colin Angus Mackay21-Jan-08 0:08 
GeneralRe: sqlncli.dll problam Pin
sekhar200821-Jan-08 2:11
sekhar200821-Jan-08 2:11 
GeneralRe: sqlncli.dll problam Pin
DaveyM6921-Jan-08 3:21
professionalDaveyM6921-Jan-08 3:21 
QuestionListView.TopItem property - help needed Pin
eyalbi00720-Jan-08 23:24
eyalbi00720-Jan-08 23:24 
Hi all,

After updating my Listview I wish that the first visible line will remain the same as before.
Iv'e tried setting the TopItem property to the correct item, and well - sometimes it works and sometimes it doesn't.

For example:

lvwMyListview.TopItem = lvwMyListview.Items[myItemIdx];

and after that call the result is that myItemIdx != lvwMyListview.TopItem.Index (for example: myItemIdx == 47 while lvwMyListview.TopItem.Index == 44).

I could understand this behaviour if this is the case (taken from MSDN):

"If you set the TopItem property to an item in the last page of the ListView, the item will automatically be scrolled into view; however, TopItem will be set to the actual top item of the last page."

However - this is not the case! even if the visible part of my listview contains only one line (index 47 for example), the new top item index if different (44 for example, meaning I need to scroll 3 lines down to get the desired line visible).

Does anyone has any explenations\solutions for this behaviour?

Thanks a lot!

Eyal.
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 
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 

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.