动态地向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.