Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > dynamically creating a GridView with x rows based on database table column design

Thread Tools

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

Andy B
Posts: n/a
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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving dynamically created table rows up and down in an HTML table T.G. Javascript 2 10-14-2008 12:56 PM
gridview column values to another page via gridview hyperlink column Keith G Hicks ASP .Net 3 02-18-2008 06:17 AM
1 Gridview. Dropdown A is column from database, Dropdown B is column from database, Data in A and B must be from same row. ASP .Net 2 11-07-2007 12:40 PM
dynamically add new rows and save data typed in these rows to a database Arjen Hoekstra ASP .Net 0 08-02-2005 12:15 PM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM