You must Sign In to post a response.
  • Category: ASP.NET

    Regarding edit on gridview in the same page

    I have a one form when i click the save button it will save in db and bind with gridview, when i press the edit button of gridview it bind with in the above form and when i update it, it will updated.

    how can i do it,any one explian me....
  • #769530

    Hi Kumar,

    There are many samples available to explain the gridview edit. Refer the below url with the complete sample with the source code.

    https://www.aspsnippets.com/Articles/Simple-Insert-Select-Edit-Update-and-Delete-in-ASPNet-GridView-control.aspx


    Regards,
    V.M. Damodharan
    "Your talent will be worthless, when you have fear and tension."

  • #769588
    Hi Damodharam

    i want edit on the form not in gridview.


    regards
    Prasanta

  • #769626
    Hi Prasanta,

    You can use CellClick event in win forms or SelectedIndexChanged event in ASP.NET
    Below code will work to get the value of cell of current row.
    Textbox1.text = GridView1[e.RowIndex, e.ColumnIndex].Value;

    Hope this will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "If you can dream it, you can do it."


  • Sign In to post your comments