Hi
I am trying to populate a TabContainer from an Access Database, I have managed to nearly get it working , The Header is ok but The Details area is displaying vertically rather than horizontally so like
T
E
S
T
rather than TEST my code is :
Dim myConnection As New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0; Data Source=c:\database\refresher.mdb") Dim myCommand As OleDbDataAdapter = New OleDbDataAdapter("select * from [User]", myConnection) Dim datset As DataSet = New DataSet() myCommand.Fill(datset, "User_Details") myConnection.Close() Dim usertbl As DataTable = datset.Tables(0) For i As Integer = 0 To usertbl.Rows.Count - 1 Dim myRow As DataRow = usertbl.Rows(i) Dim opt1 = datset.Tables("User_Details").Rows(i).Item(1) Dim opt2 = datset.Tables("User_Details").Rows(i).Item(2) Dim opt3 = datset.Tables("User_Details").Rows(i).Item(3) Dim gv As New GridView() gv.DataSource = datset.Tables("User_Details").Rows(i).Item(1).ToString gv.DataBind() Dim tab As New AjaxControlToolkit.TabPanel() tab.Controls.Add(gv) tab.HeaderText = datset.Tables("User_Details").Rows(i).Item(1) tabContainer1.Tabs.Add(tab) Next End If
I would imagine I have done something obvious and daft , so any help would be great !
Andy