locked
How to insert an Array to datatable RRS feed

  • Question

  • Hi I´am retrieving data from a machine via OPC the only way to get this Data is an Array of Integer, this are about 2000 indexes. This Array is updated every fiew seconds. I want to display this data in a Datagridview in one Column.

    Is their a way to addRows to the Datatable without stepping thru a loop for each array item?

    If not what did you mean is it faster to convert the Array to comma a separated string and do a INSERT Valu1,Value2 ... in a Temporary table end Reexecute a Fill Datatable Command

    OR

    Stepping with a Loop thru the opened Datatable

    Thank for the Help

    Martin

    Tuesday, December 5, 2006 10:28 PM