如题
唉,新手入行,公司的项目就是这个,求助
Dim sSQL = ""
//原来的想法是在第一列设置一个空值,但是仍然把checkbox冲掉了,单独加一个空串又会被报错
sSQL += "select space,wc_name,c_name,c_ip from computerlist"
Dim sqlCmd As New OleDb.OleDbCommand(sSQL, CN_LOCAL)
Dim adapter As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter
adapter = New OleDb.OleDbDataAdapter(sqlCmd)
Dim dt As DataTable = New DataTable()
adapter.Fill(dt)
Dim ds As New DataSet
ds.Tables.Add(dt)
Me.SprComputerList.Show(ds)
|
|