12 2012 档案

摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using System.Data; using System.Data.SqlClient; namespace JonseTest { public class SqlServerHelper { public static string ConnString = string.Empty; public stati... 阅读全文
posted @ 2012-12-10 22:33 clown 阅读(368) 评论(0) 推荐(0) 编辑
摘要:【问题】:当点击列标题的时候,能够完成对该列排序,再次点击,按照该列反序排序。【解决方法】:使用 IComparer接口。例子:1.using System;using System.Collections.Generic;using System.Text;using System.Collections;using System.Windows.Forms;namespace sortListView{ class ListViewColumnSorter: IComparer { private int ColumnToSort;// 指定按照哪个列排序 priv... 阅读全文
posted @ 2012-12-09 15:40 clown 阅读(1791) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示