grid view connection to a data in a table ?!

10 pts.
Tags:
C#
GridView
SQL Server 2005 Express
Visual Studio 2008
Hello , I'm julien , beginner in visual studio 2008 using c# language I Have this task that I seem to be stuck in ! I've created a database using sql server express 2005 of 4 tables :"BOOKS , AUTHORS , CATEGORIES and PUBLISHERS ". I've connected this database to my gridview in visual studio , it shows me all the books like this : " BOOK publisher , TITLE, CATEGORY " the problem is that my task is to show what every author has in terms of books . and I cant figure out how to do that !!!! can u tell me if any of this code that I'm using is helpfull or not ??? public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string ConnectionString = "Data Source=-------;Initial Catalog=julien;Integrated Security=True"; string selectSQL = "SELECT

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    You will probably need to change your SQL statement. Could you please explain this: "my task is to show what every author has in terms of books " Could you post some example data ?
    68,375 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following