Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim con As SqlConnection = Nothing
- Dim dTable As DataTable
- Dim dataAdapter As SqlDataAdapter
- Dim sqlcmd As String
- .......
- dTable = New DataTable
- dataAdapter = New SqlDataAdapter(sqlcmd, con)
- dataAdapter.Fill(dTable)
- 'DATATABLE at this point has 10 rows in it, I verified that at runtime
- gvUnitSystem.DataSource = dTable
- gvUnitSystem.DataBind()
- End Sub
- gvUnitSystem.AutoGenerateColumns = True
Add Comment
Please, Sign In to add comment