引用DLL,调用示例如下: string sql = "select top {0} * from {2} where FItemID not in (select top {1} FItemID from {2})"; string tbName = "b_material"; Dictionary dic = new Dictionary(); dic.Add("sql", sql); dic.Add("tbName", tbName); dic.Add("sqlConn", "server=192.168.1.254;user=sa;pwd='';database=APS20091223114023"); DgvShowPager d = new DgvShowPager(this.dataGri dView1, dic); d.ShowDataPager(); 不明白的可以加我QQ:253874510