Author: priyajee8 | Posted on: 10/28/2009 10:06:46 AM | Views : 283

hai,
    i'm trying to create a dynamic table control by getting datas from database.When i run my code, no datas are dispalying and also no error is showing..Here is my code below.Private Sub ReadQuestionsintotable() Dim table1 As New Table Dim acell As New TableCeDim count As Integer ds1 = New DataSet("questionsds") adapter1 = New SqlDataAdapter("select qno,questions,answers from tmques", conn) adapter2 = New SqlDataAdapter("select qno,choice from tmchoice", conn) adapter1.Fill(ds1, "Questions") adapter2.Fill(ds1, "choices") questionstable = ds1.Tables("Questions") choicestable = ds1.Tables("choices") For Each dr As DataRow In questionstable.Rows Dim tr As TableRow = New TableRow() acell.Text = dr("questions").ToString() ...

Go to the complete details ...