|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
C# ListView: Need the string from the selected subitem
I'm making this Email Address Book, just for a little training...
I have a ListView with two columns! First one, name, second one, email address. Now when I select an item(the name), and click a button, the subitem(mail addy), needs to be copied to another TextBox. Anyone know how I can do this? Last edited by fwm : August 31st, 2003 at 06:23 PM. |
|
#2
|
|||
|
|||
|
yourListView.SelectedItems[row_Index].SubItems[col_index].Text
// if you only want the first selected item, then replace row_index with 0. // single selection mode listview will most likly to use 0 as the row_index |
|
#3
|
|||
|
|||
|
Yeah got it, thanks!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > C# ListView: Need the string from the selected subitem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|