Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
how to bind to grid databses name?
sagar patil
Oct 7 2015 6:54 AM
321
Reply
private void ListDatabasesInServer()
{
this.cmbDbName.Items.Clear();
// Loop through the databases list
foreach (Database db in this.m_Server.Databases)
{
//We don't want to be adding the System databases to our list
//Check if database is system database
if (!db.IsSystemObject)
{
this.cmbDbName.Items.Add(db.Name); // Add database to combobox
}
}
this.cmbDbName.SelectedIndex = 0;
//We have the list now
}
as per above bold line, i get database names but tables are not to bind datagridview any one give me solution..
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
C# Get Username who delete the file
Help! With my homework on C#