C# winform中ListView用法
来源:互联网 发布:mysql和redis 的结合 编辑:程序博客网 时间:2024/05/18 01:58
this.listView1.GridLines = true; //显示表格线 this.listView1.View = View.Details;//显示表格细节 this.listView1.LabelEdit = true; //是否可编辑,ListView只可编辑第一列。 this.listView1.Scrollable = true;//有滚动条 this.listView1.HeaderStyle = ColumnHeaderStyle.Clickable;//对表头进行设置 this.listView1.FullRowSelect = true;//是否可以选择行 //this.listView1.HotTracking = true;// 当选择此属性时则HoverSelection自动为true和Activation属性为oneClick //this.listView1.HoverSelection = true; //this.listView1.Activation = ItemActivation.Standard; // //添加表头 this.listView1.Columns.Add("", 0); this.listView1.Columns.Add("列1",80); this.listView1.Columns.Add("列2", 160); //添加各项 ListViewItem[] p = new ListViewItem[2]; p[0] = new ListViewItem(new string[] { "","aaaa","bbbb"}); p[1] = new ListViewItem(new string[] { "","cccc", "ggggg" }); //p[0].SubItems[0].BackColor = Color.Red; //用于设置某行的背景颜色 this.listView1.Items.AddRange(p); //也可以用this.listView1.Items.Add();不过需要在使用的前后添加Begin... 和End...防止界面自动刷新 // 添加分组 this.listView1.Groups.Add(new ListViewGroup("tou")); this.listView1.Groups.Add(new ListViewGroup("wei")); this.listView1.Items[0].Group = this.listView1.Groups[0]; this.listView1.Items[1].Group = this.listView1.Groups[1];
- C# winform中ListView用法
- C# winform中ListView用法
- C# winform中ListView用法
- C# winform中ListView用法
- C# winform中ListView用法
- C# winform中ListView用法
- C# winform中ListView用法
- C# winform中ListView用法
- C# winform中ListView用法
- [WinForm]C# ListView用法详解
- C# winform中ListView用法 百度空间_应用平台
- C# winform中listview排序
- c# winform listview控件简单用法
- winform中 listview几种最常见的用法
- [WinForm]C# Listview中添加Button
- C# WinForm中Listview的使用
- C#中ListView用法详解
- Winform ListView控件用法
- android 编译单个模块
- hibernate model mapping exception
- 安装飞信
- 【Android-Emulator】Android模拟器介绍和基本使用
- SDRAM和DDR SDRAM时序图与信号完整性仿真结合运用(2)
- C# winform中ListView用法
- PDF开发库荟萃
- 作为软件开发人员应该知道的最基本的东西
- win32串口编程
- java面向对象下
- mvc下是如何传值的
- Android下C开发
- jsp的动作
- Android学习笔记--style theme浅尝