Insert Multiple row to DataGrid from populated unbound combobox

shann

New member
Joined
Jan 27, 2013
Messages
1
Programming Experience
Beginner
hi there, im trying to insert multiple rows in a datagrid by item inside a combox heres my code

VB.NET:
  For i = 1 To IndexTotalItems


            Dim row1() As String = {cb_series.Items(i)}


            Dim rows() As Object = {row1}


            Dim row As String()
            For Each row In rows
                DataGridView1.Rows.Add(row)
            Next row
        Next


with this code i can enter multiple rows in the grid depending to IndexTotalItems, but i wanted to insert all cb_series.Items(i) to grid. Thanks in advance
 
Top Bottom