C#中如何设置ListView的颜色 更新的时候注意只更新要更新的某些Item就好了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 23.4 I am trying to programmatically change the ForeColor and BackColor properties of subitems in a listview. Why doesn't this workhttp://www.syncfusion.com/faq/windowsforms/Search/712.aspx ListViewItem item1 = new ListViewItem("item1",0); //this line makes things work item1.UseItemStyleForSubItems = false; //set fore & back color of next sub item item1.SubItems.Add("1", Color.Black, Color.LightGreen, Font); item1.SubItems.Add("44"); item1.SubItems.Add("3"); //As long as UseItemStyleForSubItems is false, you can later set the colors with code such as item1.SubItems[2].BackColor = Color.Pink; 这样做我也试过,刷新后设置的颜色就没了 现在我是把DrawItem,DrawSubItem,DrawColumnHeader事件重写来解决的。按上面的方法怎样才能在刷新后保持原本的颜色? 发个代码来看看啊谢谢!~ C#线程 求正则表达式,高手进 asp.net中向access数据库中插入一整段html代码出错 级联菜单!!!! 为何我用DataSet更新Sql Server数据库没有问题,但是更新ACCESS始终不可以 运行后可以改变控件的大小 发现.NET的string转换的一个Bug 请C#高手们来啊!有好东西给你们看啊 关于SqlDataSource用法?怎么进行和数据库连接的设置~ C#调用C++编写的dll函数 参数转换问题 求一个 C#比较全的基类,,,感谢!急急急!! 很郁闷的一个问题?
http://www.syncfusion.com/faq/windowsforms/Search/712.aspx
//this line makes things work
item1.UseItemStyleForSubItems = false;
//set fore & back color of next sub item
item1.SubItems.Add("1", Color.Black, Color.LightGreen, Font);
item1.SubItems.Add("44");
item1.SubItems.Add("3");
//As long as UseItemStyleForSubItems is false, you can later set the colors with code such as
item1.SubItems[2].BackColor = Color.Pink;
这样做我也试过,刷新后设置的颜色就没了
谢谢!~