更新的时候注意只更新要更新的某些Item就好了。

解决方案 »

  1.   

    23.4 I am trying to programmatically change the ForeColor and BackColor properties of subitems in a listview. Why doesn't this work
    http://www.syncfusion.com/faq/windowsforms/Search/712.aspx
      

  2.   

    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; 
    这样做我也试过,刷新后设置的颜色就没了
      

  3.   

    现在我是把DrawItem,DrawSubItem,DrawColumnHeader事件重写来解决的。按上面的方法怎样才能在刷新后保持原本的颜色?  发个代码来看看啊
    谢谢!~