473,407 Members | 2,546 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,407 software developers and data experts.

about listview control

i want the code for
i have a listview with 2 columns.if i selected the item of the listview and
clicking on a button the selected item must be displayed on the another
listview control.
Nov 21 '05 #1
4 977
There's probably an easier way of doing this but at least this will give you
a start...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim item As ListViewItem
For j As Integer = 0 To ListView1.SelectedItems.Count - 1
item = ListView1.SelectedItems(j).Clone
ListView2.Items.Add(item)
Next

End Sub

Good luck,
Brian
"gaffar" <Sa********@yahoo.co.in> wrote in message
news:u6**************@TK2MSFTNGP12.phx.gbl...
i want the code for
i have a listview with 2 columns.if i selected the item of the listview
and
clicking on a button the selected item must be displayed on the another
listview control.

Nov 21 '05 #2
thank u for sending the immediate reply.

but sir ,
i have told that there are 2 columns selected and only one columns data is
displayed on the listview2 and another columns data also have to
display.please help me

"gaffar" <Sa********@yahoo.co.in> wrote in message
news:u6**************@TK2MSFTNGP12.phx.gbl...
i want the code for
i have a listview with 2 columns.if i selected the item of the listview and clicking on a button the selected item must be displayed on the another
listview control.

Nov 21 '05 #3
"gaffar" <Sa********@yahoo.co.in> schrieb:
i want the code for
i have a listview with 2 columns.if i selected the item of the listview
and
clicking on a button the selected item must be displayed on the another
listview control.


I replied to your question in the
"microsoft.public.dotnet.languages.vb.controls " group. Please avoid
multiposts.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4
Herfried,
"microsoft.public.dotnet.languages.vb.controls " group. Please avoid
multiposts.


It is real a post in that newsgroup. And it stays still 5 days on top even
because it is topposted.
(Or can it be it was maybe 8-1-2004 and the OP waited that long?)

:-))

Cor
Nov 21 '05 #5

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

Similar topics

1
by: newbie | last post by:
Hello, I maybe asking too much in a single posting, but here it goes: I building a windows form that mimic's the Outlook XP GUI. Its a three pane form that will allow a user to view and edit...
0
by: Art Guerra | last post by:
Any tips or information would be most appreciated! Here is my scenario simplified: I have a main application form (Form1) and on that form is a listView control. On a separate form (Form2), the...
2
by: Ken | last post by:
Hi all, Please help! I'm attempting to apply tooltips to each individual item in VB.Net's Listview control. In VB6 it was easy - you just did the following (assumes "myListView" is the name of...
7
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
1
by: PiPOW | last post by:
Hi. I have a question. I am developing an application and I have to choose the most suitable control to show records from some database queries, with freedom in customizing control layout and...
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...
3
by: Michael.Suarez | last post by:
Is it me, or does it seem like they put no effort into creating the listview control in .Net. listview. A few gripes I have with .Net listview that aren't present in vb6: -Inability to set...
5
by: Mark Olbert | last post by:
How do I get the DataPager and ListView to play nice together when I use a custom datasource? In my webpage, I use linq to pull data from a SqlServer database and assign the resulting...
2
by: Tony | last post by:
Hello! I read about this ListView. Does is exist any component that is a ListView that is redy to be used in ..NET ? Is those CommonDialog(OpenFileDialog, saveFileDialog and so on) that is...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.