Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Guys,
Can anyone help me..cause i don't know how to populate data from the database to datagrid combobox.

Here' my code:
<br />
  Dim strSELECT As String = "SELECT * FROM tblmembership"<br />
        Dim DReader As New DataClassReader<br />
        DReader.strSELECTSQL = strSELECT<br />
        DReader.ReadData()<br />
        dtg1.Rows.Clear()<br />
        Dim i As Integer = 0<br />
        Do While DReader.PinoyLDataReader.Read<br />
            With dtg1<br />
                .Rows.Add()<br />
                .Item(0, i).Value = DReader.PinoyLDataReader.Item("PK")         'TextBox<br />
                .Item(1, i).Value = DReader.PinoyLDataReader.Item("member_id")  'TextBox<br />
                .Item(2, i).Value = DReader.PinoyLDataReader.Item("bobs_id")    'TextBox<br />
                .Item(3, i).Value = DReader.PinoyLDataReader.Item("full_name")  'TextBox<br />
                .Item(4, i).Value = DReader.PinoyLDataReader.Item("mem_type")   'ComboBox<br />
            End With<br />
            i = i + 1<br />
        Loop<br />
        DReader.PinoyLDataReader.Close()


please help....
Posted
Updated 12-Jul-10 4:46am
v2

1 solution

Maybe this[^] can help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900