' Dim sqlCmd As New SqlCommand
' sqlCmd.CommandText = "insert Into 库存表(名称,尺寸,颜色,价格,产地,数量) values(@usershoesID, @usernoID, @usercolorID, @userrateID, @usercdID,@userhowID)"
' sqlCmd.Parameters.Add("@usershoesID", SqlDbType.NVarChar)
' sqlCmd.Parameters("@usershoesID").Value = strshoesID
' sqlCmd.Parameters.Add("@usernoID", SqlDbType.NVarChar)
' sqlCmd.Parameters("@usernoID").Value = strnoID
' sqlCmd.Parameters.Add("@usercolorID", SqlDbType.NVarChar)
' sqlCmd.Parameters("@usercolorID").Value = strcolorID
' sqlCmd.Parameters.Add("@userrateID", SqlDbType.Int)
' sqlCmd.Parameters("@userrateID").Value = strrateID
'sqlCmd.Parameters.Add("@usercdID", SqlDbType.NVarChar)
' sqlCmd.Parameters("@usercdID").Value = strcdID
' sqlCmd.Parameters.Add("@userhowID", SqlDbType.Int)
' sqlCmd.Parameters("@userhowID").Value = strhowID
' sqlCmd.Connection = Module1.sqlconn
' sqlCmd.CommandType = CommandType.Text
'ds.Tables("库存表").Rows.Add(myrow) '提交数据到数据集中
'sqlDa.Update(ds, "库存表")
' sqlDa.InsertCommand = sqlCmd
我想把添加的数据显示在datagrid上面...而且有可以通过datagrid中刚刚添加的数据添加到数据库中