Results 1 to 2 of 2

Thread: help with moving double array to datatable

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046

    help with moving double array to datatable

    cant seem to figure out datatables. Im trying to put a 2-dimensional double array into a datatable. i figured out at least how to get the columns and rows set up but not how to populate with the array data. help please!!!!
    VB Code:
    1. for (int j = 0; j < YBins ; j++)
    2.             {
    3.                dtOrig.Columns.Add("Y" + Convert.ToString(j));
    4.             }
    5.             for (int i = 0; i < XBins; i++)
    6.             {
    7.                 dtOrig.Rows.Add("X" + Convert.ToString(i));
    8.             }

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: help with moving double array to datatable

    I have never used them but have you tried the NewRow method?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width