Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
DataGrid1.DataSource = myDataSet.Tables("tableName")
Dim myTS As New DataGridTableStyle
'Set MappingName for TableStyle
myTS.MappingName = "tableName"
'Create the column in the order you want them to appear.
'Create 1st column.
Dim myCOL As New DataGridTextBoxColumn
With myCOL
.MappingName = "App_ID"
.HeaderText = "App_ID"
.Width = 0
End With
myTS.GridColumnStyles.Add(myCOL)
'Create 2nd column.
myCOL = New DataGridTextBoxColumn
With myCOL
.MappingName = "FirstName"
.HeaderText = "First Name"
End With
myTS.GridColumnStyles.Add(myCOL)
'and so on...
'Add TableStyle to the DataGrid.
DataGrid1.TableStyles.Add(myTS)