adding new column to a dataset.

Discussion in 'ASP .Net' started by =?Utf-8?B?QXNoYQ==?=, Aug 11, 2004.

  1. 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...
    =?Utf-8?B?QXNoYQ==?=, Aug 11, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Do
    Replies:
    2
    Views:
    6,099
    Natty Gur
    Nov 16, 2003
  2. dSchwartz
    Replies:
    2
    Views:
    2,171
    dSchwartz
    Mar 1, 2004
  3. satria

    Adding new column to dataset

    satria, Oct 13, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    13,228
    satria
    Oct 13, 2005
  4. James
    Replies:
    0
    Views:
    494
    James
    Sep 21, 2006
  5. Meir Rotfleisch

    adding droplist as column from returned Dataset

    Meir Rotfleisch, Nov 30, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    109
    Meir Rotfleisch
    Nov 30, 2003
Loading...

Share This Page