Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > How to Diplay All table names from a database in Checked ListView
 

How to Diplay All table names from a database in Checked ListView

I am working on an application in which I required to display all table names in a ListView ( CheckBox), If anyone having any idea Kindly share it ....

Thanks in Advance,

Almond C
almondc_  Saturday, January 12, 2008 6:44 AM

Hi,

I am still wondering what made you mention asp.net

Anyways, to convert the VB.NET code into C#, use this tool.

HTH,
Suprotim Agarwal

-----
http://www.dotnetcurry.com
-----

Suprotim Agarwal  Saturday, January 12, 2008 11:43 AM

Hi,

You can use the following SQL statement to get tables names from a database :

Code Block
USE
<YourDBName> SELECT * FROM Sys.Objects WHERE Type = 'U'

Once you have the tablenames, bind it to the ListView. Check a sample here.

HTH,
Suprotim Agarwal

-----
http://www.dotnetcurry.com
-----


Suprotim Agarwal  Saturday, January 12, 2008 7:15 AM
Hi Suprotim,

Thanks for very first reply.

Soory I was noy mentioned in My previous post that I need the same in C#....as I dont have any idea about asp.net ...So please if possible kindly tell me how to display the same using C#...

Thanks,
Anand
almondc_  Saturday, January 12, 2008 11:37 AM

Hi,

I am still wondering what made you mention asp.net

Anyways, to convert the VB.NET code into C#, use this tool.

HTH,
Suprotim Agarwal

-----
http://www.dotnetcurry.com
-----

Suprotim Agarwal  Saturday, January 12, 2008 11:43 AM
Thanks for your reply,

But my Problem is not yet solved, So I need some more help, Actually I am very new in development ( joined 1 months before)..so it is little bit difficult to explain all the things..If you don't have any problem then Kindly send me your mail id so that I will send some screen Shots to you, which will help me to explain the things...my mail id is pandey.ar@gmail.com and anandp@esspl.com. I try to find your mail in your site ( Great work), and also send u one mail in minalagarwal@dotnetcurry.com( but it returns).

Thanks ,

Anand



almondc_  Saturday, January 12, 2008 1:20 PM

You can use google to search for other answers

Custom Search

More Threads

• TaskVision Websevice Problem Cache
• Windows forms walkthrough
• IssueVision: Server Web Deployment Issue
• Advanced Questions?
• Request for source code pls
• Cannot access a disposed object.Object name: 'Icon'.
• login problem in windows xp
• Server source code
• Does Visual C# Express Work?
• Can't add new animals ..