I have the following dataset and datatable:

1 Code:
  1. Dim topics As New DataSet()
  2.     Public Function JT_PullData(ByVal TableName As String) As DataTable
  3.         If topics.Tables.Count >= 1 Then
  4.             topics.Clear()
  5.             names = Nothing
  6.             intSetArray = 0
  7.             i = 0
  8.         End If
  9.  
  10.         Dim conn As String = "Server=192.168.0.36;Port=3306;Database=wc;Uid=root;Pwd=123454321"
  11.         Dim cmd As String = "SELECT * FROM " & TableName
  12.         Dim ad As New MySql.Data.MySqlClient.MySqlDataAdapter(cmd, conn)
  13.  
  14.         ad.GetFillParameters()
  15.         ad.Fill(topics)
  16.  
  17.         Dim dr As DataRow
  18.         Dim dt As DataTable
  19.         dt = topics.Tables(0)
  20.         intSetArray = dt.Rows.Count
  21.         ReDim names(intSetArray, 4)
  22.  
  23.         For Each dr In dt.Rows
  24.             names(i, 1) = dr(1) 'Username
  25.             names(i, 2) = dr(2) 'Password
  26.             names(i, 3) = dr(3) 'Active
  27.             names(i, 4) = dr(4) 'Accesslevel
  28.             i += 1
  29.         Next
  30.         topics.Dispose()
  31.         JT_PullData = topics.Tables(0)
  32.     End Function

Now I have a column in my DataGridViewer that is a dropdown list. This list is to be populated by the datasel above.

I can't seem to get it to work. Help me, please

Here is an image:
Name:  DATAGRID.JPG
Views: 328
Size:  33.9 KB

I am supposed to set the dataset and then set the values that would be shown. (all by code )