动态地向gridview列添加复选框 [英] Add checkbox to gridview column dynamically

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

问题描述

我有一个Web应用程序,其中SQL Procedure给出如下结果:





////////// //教授A教授B教授C教授D.

学生真假真假



学生B假真假真



学生C真假误假





我想绑定此数据到gridview,其列中带有复选框..

从此查询获取的列和行根据条件可变。

此外,用户可以在gridview中选中/取消选中复选框在保存按钮上我必须将数据保存到数据库..



Plz帮助...紧急

I have web application in which SQL Procedure gives results as follows:


//////////// Prof. A Prof. B Prof. C Prof D.
Student A true true false true

Student B false true false true

Student C true false false false


I want to bind this data to gridview with checkbox in its columns..
Columns and rows getting from this query are variable according to condition..
Also user can check/uncheck checkbox in gridview and on save button I have to save that data to database..

Plz Help... URGENT

推荐答案

尝试

发送选中的值动态添加一个GridView的复选框到另一个 [ ^ ]

如何动态添加gridview中的复选框 [ ^ ]



第二个链接应该有所帮助。它之前是类似问题的链接。
Try
Sending checked value from dynamically added checkboxes of one GridView to another[^]
How to add checkbox in gridview dynamically[^]

The second link should help. Its a link to a similar question before.


引用并开始



如何到添加动态正复选框柱到gridview的-Asp-的净 [ ^ ]



插入部分



显示-A-复选框填充-内部-a-grid-view-in-asp-net并更新 [ ^ ]



可先试试恢复,这样很容易帮助你。
Refer and start with

how-to-add-dynamic-n-checkbox-columns-to-gridview-asp-net[^]

Inserting part

show-a-checkbox-filled-inside-a-grid-view-in-asp-net and update[^]

Can try first and revert so that it would be easy to help you.


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

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