hi, thanks for the answers for the post Copy From a Table to a Table, this is what i did:
classname matrix = new classname(); Table TableA = matrix.method(ValueA,ValueB); RowsA = TableA.Rows.Count; try { for (int i = 0; i < RowsA; i++) { TableB.Rows.Add(TableA.Rows[i]); } }
This works almost fine, because the index dont work rigth. Example If i have 10 rows,it only copies the rows 1,3,5,7,9 , and it displays a index error, i dont know why? i have traced the code and when it copies the info, it also deletes it from the table or kind of miss reading it.
Thanks in Regard
|
| Author: mario alberto de la mora flores 18 Jul 2008 | Member Level: Bronze | Rating: Points: 4 |
already found the answer Thanks!! It goes like this: classname matrix = new classname(); Table TableA = matrix.method(ValueA,ValueB); RowsA = TableA.Rows.Count; try { for (int i = 0; i < RowsA; i++) { TableB.Rows.Add(TableA.Rows[0]); } } Thanks anyway!
|