Click here to Skip to main content
15,905,004 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when i click on reply link in the gridview it has to display a panel consisting of the
feed back text box and button control.
pleas help me
Posted
Comments
Nilesh Patil Kolhapur 9-Apr-12 5:38am    
give ur gridview source code to get exact answer u looking for

on gridviewselectedindexchanged... make the panel containing textbox and button visible true.
 
Share this answer
 
default.aspx
XML
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
               <Columns>
                   <asp:BoundField HeaderText="col1">
                       <ItemStyle Width="200px" />
                   </asp:BoundField>
                   <asp:BoundField HeaderText="col2">
                       <ItemStyle Width="50px" />
                   </asp:BoundField>
                   <asp:CommandField SelectText="Reply" ShowSelectButton="True" />
               </Columns>
           </asp:GridView>


default.aspx.cs
C#
protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            panel1.visible = false;
        }
    }
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
panel1.visible=true;

    }
 
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