Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Gridview 包含第一列checkbox.Header,它选择所有复选框。在gridview中选中datarow的复选框时,哪个控件被触发?我正在尝试onrowdatabound事件,但它不起作用。
checkbox.Header
onrowdatabound
如果我认为您的要求是什么,我会继续创建该列作为模板字段,并使用 TemplateHeader 作为与“单击”处理程序进行交互的元素(可能是 asp:LinkButton)启用代码隐藏中的所有复选框。
我之前做过这个,它似乎工作正常,但我早就失去了澄清的来源。