467,911 Members | 1,430 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,911 developers. It's quick & easy.

how to edit gridview

malav123
100+
hi,
I am using gridview control in asp.net.... i want to edit the gridview as like spreadsheet allows to edit... so is there any way to edit the gridview just like table editing..... waiting for reply....
thanks in advance....
Mar 10 '08 #1
  • viewed: 1117
Share:
2 Replies
hi,
I am using gridview control in asp.net.... i want to edit the gridview as like spreadsheet allows to edit... so is there any way to edit the gridview just like table editing..... waiting for reply....
thanks in advance....
Hi, To edit data in gridview, use the showeditbutton=true option, this will create a column with edit button for all the rows,
U have to use textbox for the columns to be edited in the EditItem Template of the gridview,
When u click the the edit button the textboxes will be generated for the clicked row and u can edit the values
U have to write code for binding the values in the textbox and saving the edited items, only the design for edit is automated in grid view.
use text='<%#Bind("dbcolumnname")%> in the textbox to bind the values.
Mar 10 '08 #2
malav123
100+
Hi, To edit data in gridview, use the showeditbutton=true option, this will create a column with edit button for all the rows,
U have to use textbox for the columns to be edited in the EditItem Template of the gridview,
When u click the the edit button the textboxes will be generated for the clicked row and u can edit the values
U have to write code for binding the values in the textbox and saving the edited items, only the design for edit is automated in grid view.
use text='<%#Bind("dbcolumnname")%> in the textbox to bind the values.
thanx for reply...
But i am not properly getting how to write the code for which you gave me suggestion... so if you can than please send me some code for gridview that how to convert rows into textbox and how to save edited textbox information into database..... i am awaiting for your reply...
again thanx for reply....
Please send me suggestion as soon as possible.....
Mar 18 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by John A Grandy | last post: by
2 posts views Thread by VB Programmer | last post: by
1 post views Thread by =?Utf-8?B?UGF1bA==?= | last post: by
3 posts views Thread by Joey | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.