dynamically creating a GridView with x rows based on database table column design

Discussion in 'ASP .Net' started by Andy B, Aug 3, 2008.

  1. Andy B

    Andy B Guest

    I need to take an existing GridView that connects to a database and gets
    rows from a table and force it to show x rows in the insert mode. This is
    what should happen:

    1. There is a TextBox in the GridView header where I type the number of rows
    I want to show in insert mode. Say I type 12.
    2. When I click Add, the GridView changes to insert mode showing the 12 rows
    ready to be filled in. I would use a custom template for insert mode.
    3. In the footer of the GridView, There are 2 buttons, insert and cancel.
    Pressing insert inserts the 12 rows into the database table and returns the
    user to read only mode with the updated list. pressing cancel just returns
    the user to read only mode.

    Any recommendations on how to create a GridView like this? I would rather
    use linq for the data access if possible.
    Andy B, Aug 3, 2008
    #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. Arjen Hoekstra
    Replies:
    0
    Views:
    551
    Arjen Hoekstra
    Aug 2, 2005
  2. Rio
    Replies:
    4
    Views:
    1,184
  3. Replies:
    2
    Views:
    432
  4. Keith G Hicks
    Replies:
    3
    Views:
    763
    Keith G Hicks
    Feb 18, 2008
  5. T.G.
    Replies:
    2
    Views:
    1,067
Loading...

Share This Page