By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,505 Members | 1,034 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,505 IT Pros & Developers. It's quick & easy.

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

P: 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.

Aug 3 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.