Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
how to make a row of a grid view invisible after editing that row?
Posted 29 Jan '13 - 19:12

Comments
AshishChaudha - 30 Jan '13 - 2:02
sowmya..have you tried something..?

2 solutions

I would first like to understand the intention of hiding the Row after editing. Otherwise, in the Edit event here you are editing the row you will have the access to GridVewRow and you can simply make it invisible by using the Row.Visible = false.
 
Otherwise, if you are trying to get out of the edit mode after editing, you can use the EditIndex property of the grid to -1
  Permalink  
Guess you can try something like the below
Protected Sub GV1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating
        Dim rw As GridViewRow = DirectCast(GV1.Rows(e.RowIndex), GridViewRow)
End Sub
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Mahesh Bailwal 373
1 Sergey Alexandrovich Kryukov 354
2 Maciej Los 245
3 Rohan Leuva 175
4 CPallini 175
0 Sergey Alexandrovich Kryukov 9,287
1 OriginalGriff 7,204
2 CPallini 3,923
3 Rohan Leuva 3,211
4 Maciej Los 2,713


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid