填充DataGridView

sqlconnection/oledbconnection conn;sqldataadapter/oledbadapter dr;dataset ds;dr.fill(ds);datagridview.datasource=ds.tables[0];

你可能感兴趣的:(填充DataGridView)