带有gridview的复选框 [英] check box with gridview

查看:65
本文介绍了带有gridview的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题:5个复选框和1gridview.
例如:这些是类似
的复选框 .sid
.sname
.address
.phone
.location
如果我检查了sid和sname,则数据应显示在gridview中
并且数据应从数据库(SQL Server)填充.
例如:这是gridview的输出应显示如下...
sid sname地址电话位置
1拉姆
2拉维
3 raju
复选框中的所有项目应显示在gridview列标题中,并且只有选中的复选框项目数据应显示在gridview中的未选中的复选框项目中,但应该显示该列但没有数据....

my question:5 check boxs and 1gridview.
EX:these are check boxes like
.sid
.sname
.address
.phone
.location
if i checked sid and sname the data should display in gridview
and data should populate from database (sql server ).
Ex:This is gridview output should display like this...
sid sname address phone location
1 ramu
2 ravi
3 raju
what are the items in checkboxs all should display in gridview columns heading and only checked checkbox items data should display in gridview unchecked checkbox items it should display column but with no data....

推荐答案

在此处学习 [
Learn here[^] since you are unable to understand others.
Do it now!
(see, not pleasant to be ordered around is it).


在复选框为true时,此时您将获得复选框值,并根据该值写入存储过程并从数据库中选择数据并使用网格视图进行绑定.
on the time of check box true at that time you will get the check box value, according to that value write store procedure and select data from your database and bind with grid view.


这篇关于带有gridview的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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