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

  • SEARCH
  • Home
  • 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 7689875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:15:57+00:00 2026-05-31T20:15:57+00:00

I am pretty new to C# and SQL Server database. I have created a

  • 0

I am pretty new to C# and SQL Server database.

I have created a database called groups. It looks like this:

enter image description here

What I want is to be able to list all the groups, one by one, and then see all the members in the group.

At the moment I am only able to make a view that lists all the students and then what group the student is in.

I want it so that is specify which students are in which group in the table: Student_rel_group, and then the Windows Form Application should show it like this:

enter image description here

Can anyone help me out here. The problem is the many-to-many relation. If the group had only one member, it was no problem, but i cant make it show all the members. Only one at a time… 🙁

  • 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-05-31T20:15:58+00:00Added an answer on May 31, 2026 at 8:15 pm

    There are many ways to do that. A simple one goes like this:

    1. Create a DataSet with three DataTables
    2. Load all groups in one DataTable and all Students in the other one and all relations in the third one.
    3. Create DataSet Relations between the tables corresponding to the relations in your database.
    4. Then you should be able to data bind the DataTables to your form control.

    Note that this only makes sense if the number of rows in your database is not too large, say less than 10,000 perhaps 100,000.

    Some links on how to do that:

    http://msdn.microsoft.com/en-us/library/ms171915%28v=vs.80%29.aspx

    http://csharp.net-informations.com/dataset/dataset-relations.htm

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am pretty much new to using SQL Server 2000. I have been using
I'm pretty new to SQL. I have a database with records based on road/milepoints.
I have just managed to migrate a pretty big database from SQL Server to
I'm working with SQL Server and I'm pretty new to SQL in general, so
We currently have a 10 year old nasty, spaghetti-code-style SQL Server database that we
I am pretty new to both php and SQL. I have a login page
We are building a new application in .net 3.5 with SQL server database. The
I have been working with Microsoft SQL Server since 6.5 along with other database
I have an existing SQL Server database whose structure I can't really change, although
(using SS2008) Within a sql server database, I'd like to copy all the data

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.