Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

Inside update panel i have grid even when i click the Update option Grid need refresh but it not happen ( i need to refresh only inside the grid not full page )

could you please help

how to you post back method in grid ?

What I have tried:

Am create

<asp:UpdatePanel runat="server" ID="upStanded" UpdateMode="Conditional" ChildrenAsTriggers="true">
<triggers> <asp:PostBackTrigger ControlID="btnAddList" />
<asp:AsyncPostBackTrigger ControlID="GVStdActivity" />
Posted
Comments
Nigam,Ashish 27-Apr-16 6:23am    
please mention your code also.
Raj Kumar 27-Apr-16 6:28am    
<asp:UpdatePanel runat="server" ID="upStanded" UpdateMode="Conditional" ChildrenAsTriggers="true">
<Triggers>
<asp:PostBackTrigger ControlID="btnAddList" />
<asp:AsyncPostBackTrigger ControlID="GVStdActivity" />
</Triggers>
<contenttemplate>
<asp:GridView ID="GVStdActivity" runat="server" AutoGenerateColumns="False" ViewStateMode="Enabled"
CellPadding="2" GridLines="None" AllowPaging="true" CssClass="GV-All"
AllowSorting="true" Width="100%" AutoGenerateEditButton="True"
onpageindexchanging="GVStdActivity_PageIndexChanging"
onrowcancelingedit="GVStdActivity_RowCancelingEdit"
onrowediting="GVStdActivity_RowEditing"
onrowupdating="GVStdActivity_RowUpdating"
onselectedindexchanged="GVStdActivity_SelectedIndexChanged" onrowdatabound="GVStdActivity_RowDataBound"
>
<alternatingrowstyle cssclass="gvalternaterow">
<columns>
<asp:BoundField DataField="ActivityCode" HeaderText="ID" ReadOnly="true" />
<asp:BoundField DataField="InputType" HeaderText="Type" ReadOnly="true" />
<asp:BoundField DataField="InputGroup" HeaderText="Group Name" ReadOnly="true" />
<asp:BoundField


</div>
ZurdoDev 27-Apr-16 8:46am    
I believe all you need to do is call grid.DataBind();
Raj Kumar 28-Apr-16 0:51am    
i try this but no result bcz am using updatepanel

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