Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to make a row of a grid view invisible after editing that row?
Posted
Comments
AshishChaudha 30-Jan-13 2:02am    
sowmya..have you tried something..?

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
 
Share this answer
 
Guess you can try something like the below
VB
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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900