日期:2014-05-20 浏览次数:21104 次
Dim SqlDataAdapter1 As New SqlDataAdapter
Dim DataSet1 As New DataSet
Dim strSQLSelectCommandText As String= "select * From Table1"
SqlDataAdapter1 = New SqlDataAdapter(strSQLSelectCommandText, strModConnectionSQLString)
SqlDataAdapter1.Fill(DataSet1)
DataGridView.DataSource = DataSet1.Tables(0)