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

I need get all of table names to combobox.But i have no idea. i am using vb.net
Posted
Updated 2-Feb-12 15:20pm
v2
Comments
Rajesh Anuhya 2-Feb-12 21:20pm    
Edited: Spelling, readabulity
--RA

You have to get the tables names from database , then add the table names to combo box, see here
--For getting schema details.
http://msdn.microsoft.com/en-us/library/ms254934(VS.80).aspx[^]
-- add to combobox
foreach (DataTable dt in ds.Tables)
  {
    comboBox1.Items.Add(dt.TableName[0]);
  }


Thanks
--RA
 
Share this answer
 
 
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