編集可能なグリッドに、MSSQL Server'05の異なるテーブルのデータを関数にコードを書き込む方法を教えてください。GridView in ASP.NET 2.0
私が使用している:
Dim conn As New SqlConnection(conn_web)
Dim objCmd As New SqlDataAdapter(sql, conn)
Dim oDS As New DataSet
objCmd.Fill(oDS, "TAB")
Dim dt As DataTable = oDS.Tables(0)
Dim rowCount As Integer = dt.Rows.Count
Dim dr As DataRow = dt.NewRow()
If rowCount = 0 Then
e.DataSource = Nothing
e.DataBind()
e.Focus()
Else
e.DataSource = dt
e.DataBind()
End If
私は質問を理解していません。 –