I am developing a web program in which the user will be able to input data in textfields. The user requires to have 20 rows and 7 columns containing textfields where the data will be inputted.. i'm just wondering, is it possible to use grid view control?
I'm thinking about placing textboxes in each of the columns of the gridview that i created and just multiply the rows so the work will be easier for me. I'm thinking if this is posible rather than creating a table with 20 rows and 7 columns and manually place
140 textboxes in each cell. Can you please help me about this matter?
The user requires to have 20 rows and 7 columns containing textfields where the data will be inputted.. i'm just wondering, is it possible to use grid view control?
Hi,
Yes you can use but GridView is for read-only mode instead of let you do editing batchly. If you wanna do batch-CRUD directly, you can download this demo:
liaelalikez
Member
1 Points
4 Posts
Adding textbox to a gridview
Jan 27, 2013 11:03 PM|LINK
Hi,
I am developing a web program in which the user will be able to input data in textfields. The user requires to have 20 rows and 7 columns containing textfields where the data will be inputted.. i'm just wondering, is it possible to use grid view control? I'm thinking about placing textboxes in each of the columns of the gridview that i created and just multiply the rows so the work will be easier for me. I'm thinking if this is posible rather than creating a table with 20 rows and 7 columns and manually place 140 textboxes in each cell. Can you please help me about this matter?
oned_gk
All-Star
31776 Points
6493 Posts
Re: Adding textbox to a gridview
Jan 28, 2013 12:37 AM|LINK
Use gv with 7 templatefields and 20 rows datatable, gv.datasource=dt
place the textboxes to each itemtemplate. use foreach to get the textboxes using findcontrol
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Adding textbox to a gridview
Jan 30, 2013 12:15 AM|LINK
Hi,
Yes you can use but GridView is for read-only mode instead of let you do editing batchly. If you wanna do batch-CRUD directly, you can download this demo:
http://code.msdn.microsoft.com/ASPNETExcelLikeGridView-57fdc823