动态地为每行添加包含复选框的列...帮助! [英] dynamically adding column containing checkbox for each row...HELP!!

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

问题描述

你好,

我必须向gridview添加一列,其中动态包含每一行的复选框.其他列是通过sqldataadpter-dataset来自sql服务器的.请向我建议代码或链接.谢谢:)

Hello,

I have to add a column to gridview containing checkbox for each row dynamically. other columns are coming from sql server through sqldataadpter-dataset.please suggest me code or Links. Thank you :)

推荐答案

如果您需要额外的列,为什么不获得额外的虚拟列并在项目模板中有一个复选框.将虚拟列绑定到您在项目模板中声明的复选框.


如果这对您没有帮助,请提供更多有关您的情况下动态"的含义的信息.
If you need an extra column why dont you get an extra dummy column and have an check box in item template. Bind the dummy column to the checkbox which you have declared in Item template.


If it does not help you then please provide more information about what do you mean by ''dynamically'' in your case.


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

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