473,386 Members | 1,720 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,386 software developers and data experts.

Insert into listview, new entry at top

Tee
Hi,

Can anyone tell me how to insert new row to listview and newest data at top?

Thanks,
Tee
Nov 21 '05 #1
3 5212
One way you can use is this:
With ListView1

..Items(0).Text = "New color"

..Items.Item(0).SubItems.Add("New sub Color")

' etc

End With

"Tee" <th*@streamyx.com> wrote in message
news:uM**************@TK2MSFTNGP10.phx.gbl...
Hi,

Can anyone tell me how to insert new row to listview and newest data at top?
Thanks,
Tee

Nov 21 '05 #2
ListView.Items.Insert (0, "New Item")

"Tee" <th*@streamyx.com> wrote in message
news:uM**************@TK2MSFTNGP10.phx.gbl...
Hi,

Can anyone tell me how to insert new row to listview and newest data at top?

Thanks,
Tee

Nov 21 '05 #3
Tee
Thanks !
"Shiva" <sh******@online.excite.com> wrote in message
news:u6**************@TK2MSFTNGP11.phx.gbl...
ListView.Items.Insert (0, "New Item")

"Tee" <th*@streamyx.com> wrote in message
news:uM**************@TK2MSFTNGP10.phx.gbl...
Hi,

Can anyone tell me how to insert new row to listview and newest data at top?
Thanks,
Tee

Nov 21 '05 #4

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

Similar topics

0
by: MikeY | last post by:
Hopefully someone can help, I have a listview box where I display my desired files. I single click on the desired file to be renamed and I rename it with a new name. My problem arises when the...
1
by: MikeY | last post by:
Hopefully someone can help, I have a listview box where I display my desired files. I single click on the desired file to be renamed and I rename it with a new name. My problem arises when the...
1
by: Shane | last post by:
I have a text box select items in a listview as text is being typed into the text box. I get the select bar to move correctly in the Listview control. If the user presses the down or up key in...
4
by: Shane | last post by:
I have a text box select items in a listview as text is being typed into the text box. I get the select bar to move correctly in the Listview control. If the user presses the down or up key in...
2
by: OpticTygre | last post by:
Hi folks, I am unfamiliar with the listview control, and I need a bit of help. My listview control has 2 columns. I'm trying to populate the first column with text in a textbox when a user...
21
by: StriderBob | last post by:
Situation : FormX is mdi child form containing 2 ListViews ListView1 contains a list of table names and 4 sub items with data about each table. ListView2 contains a list of the columns on each...
2
by: MikeY | last post by:
Hi everyone, After reading various posts I'm still scratching my head and unsure of what approach to take. I have created buttons that upon clicking, the buttons add an item name (myName) to my...
0
by: John Rogers | last post by:
Can someone offer some advice. I have the following code that works to do a threaded file copy. private void CopyFolder(object o) { string sourceFolderPath = "Source Not Found"; string...
2
by: =?Utf-8?B?UGhpbGlw?= | last post by:
I am attempting to insert a simple record with LinqDataSource from a ListView, however I always get a message saying "....LinqDataSource 'dataSource' has no values to insert. Check that the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.