C# VS2008 产生dataView

private DataView CreateDataView(string tbl, string s) {
            DataSet dataSet1 = new DataSet();
            string query = "SELECT * FROM " + tbl + s;
            System.Data.OleDb.OleDbDataAdapter work1 = new System.Data.OleDb.OleDbDataAdapter(query, connectionString);
            work1.Fill(dataSet1, tbl);
            DataViewManager dvManager1 = new DataViewManager(dataSet1);
            return dvManager1.CreateDataView(dataSet1.Tables[tbl]);
        }


C# VS2008 产生dataView

你可能感兴趣的:(C# VS2008 产生dataView)