Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8188489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:55:59+00:00 2026-06-07T02:55:59+00:00

how can i find a list item with a list item’s given parameter? my

  • 0

how can i find a list item with a list item’s given parameter?

my list is defined as;

public List<Column0A> list0A = new List<Column0A>();

and has items as;

list0A.Add(new Column0A(header.type, message.receieveTime, message.importance, message.data));

i have listed all the message.receiveTime’s on my GUI depending on my list. what i really want is;
when a user click on receiveTime label, i want to show a tooltip which shows the list item’s (same receive time) all data like this:

Header: header.type

Receive Time: receiveTime

Importance: message.Importance

Data: message.data

how can i find the same receieveTime list instance? should i use LINQ?
could you give me a code sample?

thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:56:03+00:00Added an answer on June 7, 2026 at 2:56 am

    I’d recommend that you use an ID as the lookup instead of the time stamp. If this info comes from a database, this would probably be the primary key field. It makes your intent clearer, and allows you to select the right info if two happen to have the same time. Then to select your item:

    int theIdImLookingFor = //the one they just clicked on
    Column0A myItem = list0A.Single(x => x.ID == theIdImLookingFor);
    //display myItem's info in a tooltip
    

    (Single is a LINQ extension) If you’re not already clear on it, you should study the difference between Single, First, SingleOrDefault, and FirstOrDefault, and choose the one appropriate for you situation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't find instructions to add a child item to my expandable list anywhere.
Where can I find a list of transitions for bringing a new Viewcontroller onto
I have a list like this: item.Add(a); item.Add(as); item.Add(b); item.Add(fgs); item.Add(adsd); How can I
I would like to know where I can find the list of properties settable
Folks, is there somewhere on the Net where I can find a list of
Where can I find the list of states and provinces that CLGeocoder returns when
How can I find whether a singly linked list is circular/cyclic or not? I
I can't find the provisioning profile in the bundle ID list when i tried
I have a list of interconnected edges ( E ), how can I find
This is only tangentially a programming question. Where can I find a simple-to-parse list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.