Adding rows to GridView

Discussion in 'ASP .Net' started by Jeff, Dec 31, 2008.

  1. Jeff

    Jeff Guest

    Hi

    ..NET 3.5

    In my webpage I have GridView which add stuff to. Beside the GridView there
    is a textbox and a button. If button is clicked I want the text in the
    textbox to be inserted into the GridView.

    So I look for ways to add rows to a GridView which are not yet saved to the
    database. All the unsaved rows in the GridView should be saved only when
    user clicks on Save later - the logic is that then a record in a table is
    created (TABLE_A). And all the words entered in the GridView should saved to
    another table (TABLE_B) which have foreign key to TABLE_A... So hence I
    cannot add the rows to the database and just to a databind for each time..
    because no TABLE_A record is created yet.

    any suggestions?
    Jeff, Dec 31, 2008
    #1
    1. Advertising

  2. Jeff

    Jeff Guest

    solved

    "Jeff" <> wrote in message
    news:...
    > Hi
    >
    > .NET 3.5
    >
    > In my webpage I have GridView which add stuff to. Beside the GridView
    > there is a textbox and a button. If button is clicked I want the text in
    > the textbox to be inserted into the GridView.
    >
    > So I look for ways to add rows to a GridView which are not yet saved to
    > the database. All the unsaved rows in the GridView should be saved only
    > when user clicks on Save later - the logic is that then a record in a
    > table is created (TABLE_A). And all the words entered in the GridView
    > should saved to another table (TABLE_B) which have foreign key to
    > TABLE_A... So hence I cannot add the rows to the database and just to a
    > databind for each time.. because no TABLE_A record is created yet.
    >
    > any suggestions?
    >
    Jeff, Dec 31, 2008
    #2
    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. John

    adding totals in gridview rows

    John, Jun 9, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    604
  2. =?Utf-8?B?Vk1J?=

    Adding rows to gridview

    =?Utf-8?B?Vk1J?=, Aug 22, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    66,125
    shaileshcdac
    Mar 6, 2007
  3. Loading name...

    adding rows in GridView

    Loading name..., Aug 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    4,469
    John Timney \(MVP\)
    Aug 25, 2006
  4. WebBuilder451

    adding rows dynamically to a gridview problem

    WebBuilder451, Sep 9, 2008, in forum: ASP .Net
    Replies:
    7
    Views:
    2,324
  5. VijayRama
    Replies:
    2
    Views:
    2,325
    Gregory A. Beamer
    Oct 12, 2009
Loading...

Share This Page