如何在gridview的单选按钮列表中显示从数据库检索的数据? [英] how to show data retrieve from database in radio button list in gridview?

查看:115
本文介绍了如何在gridview的单选按钮列表中显示从数据库检索的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个gridview,它将显示所有课程,但是,课程的每一行,我都希望在gridview的某一列中的单选按钮列表中显示课程的可用日期列表.

通过SQL数据源检索gridview数据

那我该怎么做装订呢?

i have a gridview which will show all the lesson, however each row of lesson, i want to show a list of available date that the lesson have in the radio button list in one of the column of the gridview

the gridview data is retrieve by sql data source

so how should i do the binding?

Table: Lesson 


lessonID lessonName    
1         English
2         Chinese
3         Maths   


 Table: LessonDate
 

lessonDateID date        
1            12/2/2012   
2            13/2/2012   
3            20/3/2012   
4            25/4/2012   





 Table: LessonWithDate

lessonWithDateID   lessonDateID     lessonID
1                       1             1
2                       1             2
3                       2             2
4                       3             1
5                       4             3

推荐答案

只想问问.您想显示课程名称和课程日期吗?
那单选按钮又是什么呢?
要选择课程吗?
请澄清,以便我们提供帮助.
谢谢! :)
just wanna ask. you want to show the lesson name and the lesson date?
then what for is the radio button?
are going to select the lesson?
please clarify so we can help.
thanks! :)


这篇关于如何在gridview的单选按钮列表中显示从数据库检索的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆