在datagridviews中显示数据 [英] shows the datas in the datagridviews
问题描述
我有一个表(在数据库Access中),包含3列:房间,天和高清,我想在datagridview中显示天和高清的房间(在单元格中)功能.我想显示天在行中,在列中显示高清,在单元格中显示房间.
像这样的东西:
像这样的东西:
HD
天数
hd1 hd2 hd3 hd4 hdP5
1个房间1个房间5个房间40
2个房间3个房间34
3室19室1室12
4室3室34
5 Room32 Room21
能帮我找到合适的代码实现我的目标吗?
思考.
I have a table(in a database Access) that contains 3 columns: room, day and HD, I want to show in the datagridview the rooms (in cells) function of day and HD.I means I want to show days in rows, HD in columns and the rooms in cells.
Some things like this:
Some things like this:
HD
Days
hd1 hd2 hd3 hd4 hdP5
1 Room1 Room5 Room40
2 Room3 Room34
3 Room19 Room1 Room12
4 Room 3 Room34
5 Room32 Room21
could you Please help me to find the suitable code to realize my objective.
Thinks.
推荐答案
此处 [ ^ ]是数据绑定教程.
Here[^] is a data binding tutorial.
这篇关于在datagridviews中显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!