adding new column to a dataset.

G

Guest

greetings people,
i need to add rows and columns to a dataset. my dataset is populated by
values from the database. i want to add additionla columns and rows to this
dataset. below are my codes for my implementation, i manage to add the new
row and column but the new row values starts from way below the dataset
e.g. if my dataset has 5 records, the newly added values will start from row
6 till n...


For int = 0 To 4
row = objExcelDs.Tables(0).NewRow
row("CntQty") = int
objExcelDs.Tables(0).Rows.Add(row)
Next

please advice...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top