| |

VerySource

 Forgot password?
 Register
Search
View: 5154|Reply: 35

Datagrid C # example for multiple rows and columns

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-17 23:20:01
| Show all posts |Read mode
Now to do the teaching management system, we need to make statistics on the teaching situation. I need to train teachers to compare the needs of bt. Let me help you with ideas. It must be C #. The others cannot understand.

The requirements are as follows: A teacher teaches a group of students A. The course is divided into three units a, b, and c. Each unit is divided into 1, 2, and 3 classes. Each time the class is completed, the teacher needs to register as follows. Information: teacher's name, student's name, class time, class content, grade the student's grade for the course (excellent, good, poor).


Then the director of the academic affairs can find out at a glance by querying the keyword of "student name", the student's learning situation in the entire course (including which teacher is taught in each class? What time? How much?)

I consider that this involves multiple rows and columns of datagrid data display, friends and experts who have done it, please provide this information and other ideas! !! Thank you very much!
Reply

Use magic Report

0

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-23 16:54:01
| Show all posts
GridView nested, available online, search it, but the interface is not well controlled
Reply

Use magic Report

1

Threads

7

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-23 19:54:01
| Show all posts
Can names be keywords ????
Use the student number, every time the director of academic affairs searches, it is only necessary to send out the corresponding information SOU.
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-24 06:45:01
| Show all posts
up
Reply

Use magic Report

0

Threads

73

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 United States

Post time: 2020-1-24 08:45:01
| Show all posts
Does the teacher provide a student name and then retrieve all the student's information?
This is not just a SQL solution.
Reply

Use magic Report

0

Threads

18

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-24 10:09:01
| Show all posts
Agree upstairs
Reply

Use magic Report

0

Threads

58

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-1-24 10:45:01
| Show all posts
You simply draw a layout and see it.
Reply

Use magic Report

0

Threads

29

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-1-24 16:54:01
| Show all posts
With repeaters, columns can be nested in repeaters or datalists
Reply

Use magic Report

0

Threads

17

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-24 21:00:02
| Show all posts
Then the director of the academic affairs can find out at a glance by querying the "student name" keyword, the student's learning situation in the entire course (including which teacher is taught in each class? What time? How much?


// When the landlord designs the table, it is recommended to use "student number" as the primary key. Names may be duplicated and inherently flawed
// The query can be solved by GridView nesting. But because the GridView or DataGrid format is too single, you can consider using Repeater nesting. The specific code can be searched by the landlord.
Reply

Use magic Report

0

Threads

15

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-1-24 23:36:01
| Show all posts
Template columns, writing a table is not easy to achieve the purpose, why bother so much.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list