日期:2014-05-18 浏览次数:21008 次
string t; for(int i=0;i<this.lVw .Items .Count ;i++) { if(this.lVw .Items [i].SubItems [1].Text .CompareTo (this.lVw .Items [i+1].SubItems [1].Text )>0) { t=this.lVw .Items [i+1].SubItems [1].Text ; this.lVw .Items [i+1].SubItems [1].Text =this.lVw .Items [i].SubItems [1].Text; this.lVw .Items [i].SubItems [1].Text =t; } }