如何在Listview中设置不可编辑的列? [英] How to set un-editable column in Listview?

查看:149
本文介绍了如何在Listview中设置不可编辑的列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我有一个Listview控件,可显示各种数据。

默认选中的项目是第一项。

(它总是第一项吗?)


这里有一个简单的代码:

Hello,

I have a Listview control which displays various data.
The default selected item is the first item.
(Is it always the first item?)

Here''s a simple code:

展开 | 选择 | 换行 | 行号

推荐答案

您使用的是哪种类型的对象?表单上的ListBox控件?
What types of objects are you using? A ListBox control on a Form?


现在订阅Juast。 ListView控件的所有数据都是手动添加还是动态添加,如果是动态添加,那么数据源是什么?
Juast subscribing for now. Is all the data for the ListView Control going to be Manually or Dynamically added, and if Dynamically, what is the Data Source?


正确,因此可以使用ListView控件。在通过附加控制列表搜索后我找到了它。对于那些不熟悉附加控件中可用的所有各种对象的人来说,这可以在Form对象上找到。


因为这不是我熟悉的东西我只会简单感兴趣地观看。
Right, so there is a ListView control available. I found it after hunting through the Additional Controls list. This would be found on a Form object for anyone who is not familiar with all the various objects available within Additional Controls.

As this is not something I''m familiar with I will simply watch with interest.


这篇关于如何在Listview中设置不可编辑的列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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