Click here to Skip to main content
13,143,774 members (30,899 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I use render to click the row in gridview.i need,if i click the one row ,gridview header should be hide.
Posted 17-Feb-13 22:32pm
Updated 17-Feb-13 22:41pm
Sandeep Mewara 18-Feb-13 4:35am
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        onrowcommand="GridView1_RowCommand" >
            <asp:BoundField DataField="UNIT" HeaderText="UNIT" />
            <asp:BoundField DataField="AMT" HeaderText="AMT" />
            <asp:TemplateField HeaderText="UP">
            <asp:Button ID="C" runat="server" Text="DDD" />

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        if (!IsPostBack)
           //GridView CODE//
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        if (GridView1.HeaderRow.Visible == true)
            GridView1.HeaderRow.Visible = false;
            GridView1.HeaderRow.Visible = true;

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 18 Feb 2013
Copyright © CodeProject, 1999-2017
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