zoukankan      html  css  js  c++  java
  • 使用ListView控件展示数据

    属性名称                                       说明
    items                          指定显示那种视图
    View                           指定显示那种视图
    largelmagelist                     大图标图像的imagelist控件
    SmallLmagelist                    小图标图像的imagelist控件

    imagelist                    控件用来存放使用的图像对象集合

    图像列表imagelist的属性

    属性名称                             说明
    images                           存储的所有图像
    imageSize                            图像的大小
    colordepth                             颜色数
    transparentColor                     被视为透明的颜色

    先设置colordepth imagesize属性值再添加图片,反之不能更改这两个属性值

    listView
    items(项的集合)>listViewItem(列表项)>            subItems(子项)>listviewsubitem(子项)

    属性名称                           说明
    columns                       详细视图中显示的列items listview中的项

    liview                        动态添加数据
    创建listviewitem对象
    添加子项
    添加到listview的item集合中
    实现查询功能listview属性设置
    view:Details,                  设置视图为详细信息
    fullrowselect:true,                整行选中
    Gridlines:true,                  显示网络线
    multisekect:false,                不允许多选

    读取数据库中数据添加到liview中
    Add方法
    AddRange()方法
    获取listview数据方法
    this.lvresult.selectedItems[0].Text
    this.lvresult.selectedItems[0].subitems[0].Text
  • 相关阅读:
    golang json字符串合并操作
    goland 无法跳转 struct等
    golang 中mgo update报错: The dollar ($) prefixed field '$inc' in '$inc' is not valid for storage.
    解决windows下使用vscode没有函数提示的问题
    【转载,实测好用】gitlab结合sourcetree使用
    C++单继承、多继承情况下的虚函数表分析
    Linux 日志文件管理——限制大小
    C++ RCSP智能指针简单实现与应用
    Makefile模板(C++)
    Git关于pull,commit,push的总结
  • 原文地址:https://www.cnblogs.com/matianpeng/p/7804318.html
Copyright © 2011-2022 走看看