Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to create one generic component that will have autocomplete box with search button ,when i dont know the keyword to search in autocomplete i can use that search button so that one child window will open and it will list the records so that i will choose the reqired one so that it will come in autocomplet box ,

this usercontrol will accept the generic collection of specific type lets say "X" ,the autocomplete and datagrid is working under this X type only ,
but the problem here is i always need to create the collection based on X type to supply for usercontrol

but i need to make this usercontrol to get any type of collection instead of sticking with X type ,based on the type the autocomplete and datagrid need to work

Waiting for the solution

Thanks in advance
Posted

1 solution

A class of type System.Collection.Generic should probably do the trick for you.
See http://msdn.microsoft.com/en-us/library/system.collections.generic(v=VS.95).aspx[^].
Pick up the top most class in the collection class hirearchy.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900