Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: help for filling a table from datarow() array


Message #1 by "sundar srinivasan" <ssrinivasan3@n...> on Fri, 14 Mar 2003 17:48:24
This is my code:

I clone a table..successfull
  Dim mytable As DataTable = dsLoan.Tables(0).Clone

I create a datarow array..successfull
dim datarows as datarow() = dsLoan.Tables(0).Select("ClientName 
like 'Ca%'"))

'Trying to add datarow array contents to table..It FAILS here
  mytable.Rows.Add(datarows)

'Add the table to dataset
  myds.Tables.Add(mytable)

How do I go about it? Thanks in advance

  Return to Index