【问题标题】:Binding action to listView checkboxes将操作绑定到 listView 复选框
【发布时间】:2014-03-20 04:21:26
【问题描述】:

我在绑定listView 复选框时遇到了一些问题(由CheckBoxes 属性生成)。用列表绑定普通checkBox 对我来说不是问题,但我不知道如何将任何东西从listView 绑定到checkBox

有人知道吗?

ListViewItem 没有属性 Databindings

感谢您的帮助!

【问题讨论】:

    标签: c# listview checkbox binding


    【解决方案1】:

    确保你有这些:

    using System;
    using System.Web;
    using System.Data;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    

    【讨论】:

    • DatabindingSystem.Web 的一部分,ListViewItemSystem.Web.UI.WebControls 的一部分。如果不包含这些包,代码将不知道您要做什么。因此,它正在寻找一种它找不到的方法。
    猜你喜欢
    • 1970-01-01
    • 2011-12-06
    • 2014-08-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-03
    • 2013-04-06
    • 2013-07-13
    相关资源
    最近更新 更多