如何使用asp.net和C#在codebehind上的GridView中添加复选框 [英] How to add a checkbox ina gridview on codebehind using asp.net with c#
本文介绍了如何使用asp.net和C#在codebehind上的GridView中添加复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用[p>
datatable dt =新数据表;
dt.column.add("Check",type(Boolean));
这可以创建复选框,但无法在运行时进行检查
解决方案
GridView可能设置为只读.使该列可写.
I add the checkbox in a gridview using
datatable dt = new datatable;
dt.column.add("Check",type(Boolean));
this can create checkbox but cannot able to check it at runtime
解决方案
The GridView is probably set to readonly. Make that column writable.
这篇关于如何使用asp.net和C#在codebehind上的GridView中添加复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文