Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
how to make a row of a grid view invisible after editing that row?
Posted 29-Jan-13 20:12pm
ssskp32173
Comments
AshishChaudha at 30-Jan-13 2:02am
   
sowmya..have you tried something..?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
0 DamithSL 421
1 OriginalGriff 220
2 Sergey Alexandrovich Kryukov 207
3 Peter Leow 185
4 Afzaal Ahmad Zeeshan 170
0 OriginalGriff 7,380
1 DamithSL 5,359
2 Sergey Alexandrovich Kryukov 4,944
3 Maciej Los 4,906
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100