473,395 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Set new item in listview visible

Hello,

I have a listview (detail) that gets filled with items using a button.
After adding some items new items are not visible in the listview because it
does not scroll automatically.
Is there a way to make new items always visible in the listview?

________ <-- ListView starts here
1
2
3
_______ <-- ListView ends here, the latest items are added but not
visible to the user...
4
5
6

--> I want something like this ...

1
2
3
_______
4
5
6
_______

.... without user interaction.

Thanks for help!
Greetings,
Tim.
Nov 16 '05 #1
2 4373
Hi Tim,

You are looking for ListView.EnsureVisible(index);
On Thu, 25 Nov 2004 18:24:11 +0100, Tim Bücker <ti*************@web.de>
wrote:
Hello,

I have a listview (detail) that gets filled with items using a button.
After adding some items new items are not visible in the listview
because it
does not scroll automatically.
Is there a way to make new items always visible in the listview?

________ <-- ListView starts here
1
2
3
_______ <-- ListView ends here, the latest items are added but not
visible to the user...
4
5
6

--> I want something like this ...

1
2
3
_______
4
5
6
_______

... without user interaction.

Thanks for help!
Greetings,
Tim.


--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
"Morten Wennevik" <Mo************@hotmail.com> schrieb im Newsbeitrag
news:opsh07xfdcklbvpo@pbn_computer...
Hi Tim,

You are looking for ListView.EnsureVisible(index);
Hi Morten,

thanks for the fast reply and for the good news ;-)
I was just looking over to Win32...

Greetings,
Tim.
On Thu, 25 Nov 2004 18:24:11 +0100, Tim Bücker <ti*************@web.de>

I have a listview (detail) that gets filled with items using a button.
After adding some items new items are not visible in the listview
because it
does not scroll automatically.
Is there a way to make new items always visible in the listview?

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add...
7
by: Jax | last post by:
I understand that it's supposed to contain text, usually. But as it takes an object can you be really cheeky and put a very complex object in there instead? Would any problems come from doing...
2
by: Adam Klobukowski | last post by:
Hello i need to find out the last fully visible item of a Llistview. If it would be a treeview then it would be easy, I'm even thinkin of faking my treeview as listview, but maybe there is some...
13
by: Maheshkumar.R | last post by:
hi groups, I have placed an listview control, i want to iterate thru the control and find the clicked event items. listView2.Items.Add(fname.ToString(), i); how i can perform the iteration...
7
by: txplayboy2002 | last post by:
Is there a way in vb.net to determine the number of rows that can be visible in the listview region ? Not the total # rows in the listview, but only the visible count. Also, I was wondering if...
1
by: RonNanko | last post by:
I am facing a userinteraction issue with a listview, which is populated/updated by a background task. While the population of the listview is taking place, the user should already be able to...
4
by: Pucca | last post by:
How can I tell a mouse right clicks over a listview item that's in a container panel. I only want to display a popup menu if the user right click the mouse over an item on the Listview. I don't...
1
by: Mystique | last post by:
Hello I have a ListView and a form for entering data. When the user is finished entering the data he presses AddToListView. Then there is a large object that is being filled with data that the...
1
by: apondu | last post by:
Hi, This is Govadhan, i am a begginer for web services using c#.net. I have written a small web service where in i have created a listview item in the web service method and added some data to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.