Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8903481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:52:50+00:00 2026-06-15T01:52:50+00:00

I have a SQL database with multiple tables and I want to bind one

  • 0

I have a SQL database with multiple tables and I want to bind one of them to a DataGridView.
I use this code :
http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx#Y210
But my datagridview only show column names and does not draw any rows.
Does anyone can help me ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:52:51+00:00Added an answer on June 15, 2026 at 1:52 am

    If you can see the correct column names but don’t see the data, there could be one of these two problems (or both):

    1. Your query returns nothing (check in your database manager if there are some data when you execute the query)
    2. Your table(s) in the database is empty therefore there is nothing to return.

    EDIT: Have you tried switching these two statements?

    Form1_Load(object sender, System.EventArgs e) 
    { 
           GetData("select * from Customers"); 
           dataGridView1.DataSource = bindingSource1; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have database with multiple tables in Microsoft SQL Server with schema in tables
I currently have two joined tables in a SQL Server database, one with news
In my SQL database I have a query that turns values in multiple rows
I have setup multiple SQL Service Broker Queues in a database but have not
I have an SQL database set up in which I would like to use
I have an SQL database with a set of tables that have Unique Id's.
I have a DataSet with multiple tables (distinct schema). I want to generate table
I have a database and I've created a DBML Linq-to-SQL file to represent this
I have a products database with multiple tables to store pricing (because of default
I have SQL Server database for users, and now I want to make simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.