[英]c# How to add unbound check box column to WinForms with DevExpress(Gridview)?
[英]How to add grid view items to list box on checking a check box of DevExpress GridView
我有devexpress控件的网格视图。 在我的网格视图中,我具有ID,ITEM和复选框。 现在,我的问题是,当我在网格视图中选中一个复选框时,将网格视图项添加到列表框中。 请帮助解决此问题。
选中复选框时,devexpress gridview应该触发一个事件。
因此,它将类似于以下伪代码:
Handle gridview.checkbox.valuechanged e
id = GetID(e.row)
item = GetItem(e.row)
itemAlreadyExists = ItemAlreadyExistsInListView(ID)
If e.Value and not itemAlreadyExists then
_listView.Add(id, item)
else
_listView.Remove(id,item)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.