list (List) where the first value has supported repeated

good night, I need to create a list (List) where the first value has supported repeated, for example
1, aaaa
1, bbbb
1, cccc
also to indicate as those values can be read
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can you describe this a little bit more?
Anurag ThakurTechnical ManagerCommented:
you can create a class with two members and add that class in list

class test
   public int i;
   publci text = string.Empty;
   public test()

    public void test(int I, string Text)
        i = I;
        text = Text;

List <test> list = new List<test> ();
list.Add(new text(1, "aaaa");
list.Add(new text(1, "bbbb");
list.Add(new text(1, "cccc");
enrique_aeoAuthor Commented:
Hi, i have this error (view file)
Anurag ThakurTechnical ManagerCommented:
i didnt paste the complete working code
i just gave you the prototype of the class which you can use to add in a generic list <T> and then you have use the bottom addition into the list to add to the list items and then later bind that to the dropdown

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.