Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have total 56 combination(data/numbers) in listbox in listbox in listboxt in listbox,
so i want to sent/transfer/upload to datagridview into 7 row, 8 Columns ( datagridview )
and i m working in visual Basic 2010

1. Button1 (Browse)
2. Listbox1 (56 Combination in the listbox)
3. NumericUpDown1 (7 Row )
4. NumericUpDown2 (8 Columns )
5. DatagridView
6. Button2 (Create Table)
7. Button3 (Upload)..........?
8. Button4 (Clear)

56 Combination

1. A,B,C
2. A,B,D
3. A,B,E
4. A,B,F
5. A,B,G
6. A,B,H
7. A,C,D
" "
" "
" "
56. F,G,H

these Combination it has in listbox, so how to transfer/sent to datagridview (8 Columns and 7 Row), how these data transfer from listbox to datagridview.plz help me.

**Remember** Always Listbaox value/data will be equal of the datagrideview or total cell of datagridview, if 56 combination or more then it will be equal
( Listbox data = NumericUpDown1*NumericUpDown2 )
( 56 Combination = 7 Rows*8 Column )
or Listbox items = datagridview/total cell/(n)Rows*(n)Column
Posted
Comments
Richard Deeming 14-Nov-14 11:52am    
Yet another REPOST of the same question:
http://www.codeproject.com/Questions/840778/listbox-all-full-data-export-transfer-sent-upolad[^]

Reposting the same question again and again isn't going to make us help you any faster. If anything, it's likely to get you kicked off the site for abusive behaviour.

If you want to update your previous question with more information, use the "Improve question" link at the bottom of the question. DO NOT repost the question.

1 solution

in vb.net solution
VB
Dim Counter As Integer = 0

     For I As Integer = 0 To 6
         Dim RowItems(7) As String
         For J As Integer = 0 To 7
             RowItems(J) = ListBox1.Items(Counter)
             Counter += 1
         Next
         DataGridView1.Rows.Add(RowItems)
     Next
 
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