Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

listview event handling

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
a - 22 Jul 2007 06:18 GMT
Hi

I have a 3-column listview. It has to return the value of the cell when the
user click the listview.
The SelectedIndexChanged event and ItemSelectionChanged Event only return
the row information (ListViewItem).
If I want to return the cell value of the second and the third column, which
event should I use?

Thanks
AlexS - 22 Jul 2007 12:23 GMT
To get subitems of selected item in listview you can use
ListViewItem.SubItems property. Subitems[1] and [2] should give you required
values.

> Hi
>
[quoted text clipped - 8 lines]
>
> Thanks
a - 22 Jul 2007 20:29 GMT
"AlexS" <salexru2000NO@SPAMrogers.comPLEASE> ¼¶¼g©ó¶l¥ó·s»D
:%2330SiKFzHHA.484@TK2MSFTNGP06.phx.gbl...
> To get subitems of selected item in listview you can use
[quoted text clipped - 13 lines]
> >
> > Thanks

Thanks for your reply.
You are right in terms of programming.
But, let say, if the user select row 2, column 2, which event handling
procedure should be used to return the value of the cell (2,2)?
Or, it is also fine, if the event handling procedure is able to return the
co-ordinate of the selected cell.

Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.