I have this code that hides a column in a gridview. (The column houses another nested gridview).
Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
If e.CommandName = "Select" Then
If GridView1.Columns(0).Visible = False Then
GridView1.Columns(0).Visible = True
GridView1.Columns(0).Visible = False
The trouble is that if I click the select link on one row that action to hide is carried out on all rows. How can I set this up so that it only hides the row that is selected?
View Complete Post