如何在Windows Mobile应用程序中获取列表视图复选框选中的项目 [英] how to get list view checkbox selected item in windows mobile app

查看:104
本文介绍了如何在Windows Mobile应用程序中获取列表视图复选框选中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,


我在listview中有一个listview我有复选框.

然后我在列表视图中选择多个复选框,然后单击要在文本框中显示的按钮.


我将数据绑定到列表视图中就可以了

我只需要在选择要选择的复选框项目的复选框时显示在文本框中即可.



谢谢
Venkat.S

Hi Friends,


i have one listview inside listview i have check boxes.

then i select multiple checkboxes in listview and click button i want to display in textbox.


i bind data in listview thats ok

just i need when i select checkboxes that selected checkbox items i want o display in textbox.



Thanks
Venkat.S

推荐答案

您可以使用
You can use ItemCheck[^] event.
1) Get the text of checked item
2) Check if it is already there in textbox
3) If not, add it to textbox


Prera​​k Patel

感谢您重播

没关系,但是在Windows Mobile表单中没有CheckedListViewItemCollection

在Windows窗体中可以正常显示,但在Windows Mobile中则不会出现.

当我像ListView.chec打字时...它不在Windows Mobile窗体中

wt在这里是有问题的,没有能力,否则我必须添加dll之类的任何东西.


ListView. CheckedListViewItemCollection checkedItems = ListView1.CheckedItems;
我要做的是,还有其他方法可以解决此问题.
Hi Prerak Patel

thanks for replay

thats ok but in windows mobile forms there is no CheckedListViewItemCollection

in windows forms ok its appear but in windows mobile its not appear.

when i typ like ListView.chec...its not came in windows mobile forms

wt is proble here there is no capability for that otherwise i have to add any thing like dlls .


ListView.CheckedListViewItemCollection checkedItems = ListView1.CheckedItems;
what i have to do.is there any other way to resolve this.


这篇关于如何在Windows Mobile应用程序中获取列表视图复选框选中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆