array as datasource to datagridview in vb.net.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bharathi228
    New Member
    • Jul 2008
    • 28

    array as datasource to datagridview in vb.net.

    hi,

    how to assign a array as datasource to datagridview in vb.net.


    my code is

    Dim intarray(mblndi gital_inputs) As Integer
    mblndigital_inp uts.Copyto(inta rray, 0)
    Array.Reverse(i ntarray)

    i want to assign intarray to datagridview control.



    and another one is suppose is there 40 values in that array

    then 16 values are displayed in single row

    another 16 values are goes to next row

    else are goes to next row


    each value is in seperate cell

    for example array values are 0,1,2,3,4,5,6,7 ,8,9,10,11,12,1 3,14,15,16,17,1 8,19,20,21,22,2 3,24,25,26,27,2 8,29,30,31,32,3 3,34,35,36,37,3 8,39,40

    first row contains 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1

    second row contains 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17

    third row contains 40 39 38 37 36 35 34 33
Working...