how to edit gridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • malav123
    New Member
    • Feb 2008
    • 217

    how to edit gridview

    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....
  • saran23
    New Member
    • Mar 2008
    • 28

    #2
    Originally posted by malav123
    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.

    Comment

    • malav123
      New Member
      • Feb 2008
      • 217

      #3
      Originally posted by saran23
      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.....

      Comment

      Working...