Click here to Skip to main content
13,088,101 members (44,842 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i make a list with generic class name Generic<t,u>
and make object like this

Generic<string,> sGString = new Generic<string,>(3);

i want to add data in DataGrideView which will add in GString

plz help me
Posted 7-Dec-12 2:19am
Simon_Whale 7-Dec-12 9:26am
are you on about using list < T >?
What is the definition of "Generic". Is it your generic class? There is no such thing in FCL...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

List<generic> sGList = new List<generic>();
dataGridView1.Datasource = typeof(BindingList<>);
dataGridView1.Datasource = sGList;

Now when you add an item to the datagridview, it should add to the list. (If I understand your question correctly);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 7 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100