|
Hi all,
m having problem with the following code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim a As New DataSet1.TasksDataTable()
Dim adp As New DataSet1TableAdapters.TasksTableAdapter
adp.Fill(a)
GridView1.DataSource = a
GridView1.DataBind()
GridView1.Visible = True
End Sub
I created a dataset in visual studio by drag n drop. It has got two tables: Tasks and Reply. I saved the dataset by name Dataset1.xsd.
The problem is that the gridview doesn't show up at all. without throwing any errors.
please help.
|
|
|
|
|
Resolved! In GridView
it was AutoGenerateColumns="False"
I changed it to AutoGenerateColumns="True"
.........
Silly Mistake!
|
|
|
|