我有一个GridView控件绑定到一个对象数据源。除了我想要显示的列外,我还想要显示这个。
<Columns>
<asp:CheckBoxField DataField="Locked" Visible="true" AccessibleHeaderText="On Hold" ReadOnly="false"/>
</Columns>
Couple of questions here: 1. If I do the above said, my page loads and certain rows have their records marked as checked and certain rows do not, as per data. However, the user is unable to click on any records to undo their check marks. It appears that this is in a disabled state.
似乎这个复选框字段没有onclick事件。我希望当用户选中或取消每条记录时立即更新我的记录。是的,设计不好,但我的手被绑住了。