Click here to Skip to main content
15,921,990 members
Home / Discussions / C#
   

C#

 
QuestionThread's Pin
CiberwizZ14-Mar-06 9:08
CiberwizZ14-Mar-06 9:08 
AnswerRe: Thread's Pin
Ed.Poore14-Mar-06 9:46
Ed.Poore14-Mar-06 9:46 
QuestionRe: Thread's Pin
CiberwizZ14-Mar-06 10:14
CiberwizZ14-Mar-06 10:14 
AnswerRe: Thread's Pin
Ed.Poore14-Mar-06 10:41
Ed.Poore14-Mar-06 10:41 
GeneralRe: Thread's Pin
CiberwizZ14-Mar-06 10:52
CiberwizZ14-Mar-06 10:52 
QuestionListView problems Pin
Authorof2214-Mar-06 8:27
Authorof2214-Mar-06 8:27 
QuestionRe: ListView problems Pin
Ed.Poore14-Mar-06 9:47
Ed.Poore14-Mar-06 9:47 
AnswerRe: ListView problems Pin
Authorof2214-Mar-06 10:11
Authorof2214-Mar-06 10:11 
I need to keep information tagged to each item in the list. For example, the items in one list are cars and I need to keep the license plate number of each car so when the user clicks an item in the list (Ford Fairlane), I can get the license plate number an look that up in the database to display additional information about the selected vehicle.

There is a tagged property:

ListViewItem myItem = lstCars.Items.Add (myReader.GetString(3));
myItem.Tag = myReader.GetString(2);

Where myReader is a reader into the database.

There is no similar property of a List. The only Tag for a list is for the entire List (at least that's all I can find).

Thanks for any suggestions you might have...

Ed.


Ed Coburn
GeneralRe: ListView problems Pin
Dan Neely14-Mar-06 10:35
Dan Neely14-Mar-06 10:35 
GeneralRe: ListView problems Pin
Ed.Poore14-Mar-06 10:39
Ed.Poore14-Mar-06 10:39 
GeneralRe: ListView problems Pin
Ed.Poore14-Mar-06 10:39
Ed.Poore14-Mar-06 10:39 
GeneralRe: ListView problems Pin
Authorof2215-Mar-06 5:04
Authorof2215-Mar-06 5:04 
GeneralRe: ListView problems Pin
Ed.Poore15-Mar-06 5:40
Ed.Poore15-Mar-06 5:40 
QuestionTreeView index Pin
Authorof2214-Mar-06 8:23
Authorof2214-Mar-06 8:23 
AnswerRe: TreeView index Pin
Ed.Poore14-Mar-06 9:54
Ed.Poore14-Mar-06 9:54 
GeneralRe: TreeView index Pin
Authorof2214-Mar-06 10:05
Authorof2214-Mar-06 10:05 
GeneralRe: TreeView index Pin
Ed.Poore14-Mar-06 10:25
Ed.Poore14-Mar-06 10:25 
GeneralRe: TreeView index Pin
Authorof2215-Mar-06 2:46
Authorof2215-Mar-06 2:46 
GeneralRe: TreeView index Pin
Ed.Poore15-Mar-06 5:38
Ed.Poore15-Mar-06 5:38 
GeneralRe: TreeView index Pin
Authorof2215-Mar-06 5:53
Authorof2215-Mar-06 5:53 
GeneralRe: TreeView index Pin
Ed.Poore15-Mar-06 6:26
Ed.Poore15-Mar-06 6:26 
QuestionRemove duplicate Items from textbox. Pin
Rajendra Rana14-Mar-06 6:11
Rajendra Rana14-Mar-06 6:11 
AnswerRe: Remove duplicate Items from textbox. Pin
malharone15-Mar-06 3:12
malharone15-Mar-06 3:12 
QuestionUsing Reflection Pin
JuanAlbertoMD14-Mar-06 5:15
JuanAlbertoMD14-Mar-06 5:15 
AnswerRe: Using Reflection Pin
Tom Larsen14-Mar-06 8:29
Tom Larsen14-Mar-06 8:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.