Hello, I have a simple question. Are you allowed to edit gridview columns for a gridview that resides in an Updatepanel?
I'm playing around with a simple project I created to learn more about this. If I don't have the gridview control in the updatepanel, I'm able to press the edit button on one of the rows and am able to modify the text in the column. Otherwise it won't allow me to edit the column.
Here's my markup
I'm playing around with a simple project I created to learn more about this. If I don't have the gridview control in the updatepanel, I'm able to press the edit button on one of the rows and am able to modify the text in the column. Otherwise it won't allow me to edit the column.
Here's my markup
Code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
<table style="font-family:Arial;">
<asp:GridView ID="GridView1" width="800px" runat="server" AutoGenerateColumns="false"
AllowSorting = "true" AllowPaging = "true" AutoGenerateDeleteButton = "false"
AutoGenerateEditButton = "True" AutoGenerateSelectButton = "false" PageSize = "4"
OnRowEditing="GridView1_RowEditing"
OnRowCancelingEdit="GridView1_RowCancelingEdit"
OnRowUpdating="GridView1_RowUpdating"
OnPageIndexChanging="GridView1_PageIndexChanging"
PagerSettings-Mode = "NextPreviousFirstLast"
BorderWidth="1px" BackColor="White" GridLines="Vertical"
CellPadding="4" BorderStyle="None"
BorderColor="#DEDFDE" ForeColor="Black">
<FooterStyle BackColor="#CCCC99"></FooterStyle>
<PagerStyle ForeColor="Black" HorizontalAlign="Right"
BackColor="#F7F7DE"></PagerStyle>
<HeaderStyle ForeColor="White" Font-Bold="True"
BackColor="#6B696B"></HeaderStyle>
<AlternatingRowStyle BackColor="LightGray"></AlternatingRowStyle>
<Columns>
<%--
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox runat="server" ID="RowLevelCheckbox" />
</ItemTemplate>
</asp:TemplateField> --%>
<asp:BoundField DataField="distrib_zone_id" headertext = "Distrib Zone Id" ReadOnly = "false" sortexpression = "distrib_zone_id" ItemStyle-Width = "200" />
<asp:BoundField DataField="distrib_zone_desc" headertext = "Distrib Zone Desc" ReadOnly = "false" sortexpression = "distrib_zone_desc" ItemStyle-Width = "600" />
<asp:BoundField DataField="district_id" headertext = "District Id" ReadOnly = "false" sortexpression = "district_id" ItemStyle-Width = "375" />
<asp:BoundField DataField="carrier_id" headertext = "Carrier Id" ReadOnly = "false" sortexpression = "carrier_id" ItemStyle-Width = "375" />
<asp:BoundField DataField="carrier_full_name" headertext = "Carrier Name" ReadOnly = "false" sortexpression = "carrier_full_name" ItemStyle-Width = "700" />
<asp:BoundField DataField="partner_id" headertext = "Partner Id" ReadOnly = "false" sortexpression = "partner_id" ItemStyle-Width = "400" />
</Columns>
</asp:GridView>
<tr>
<td>
 
<br />
<asp:Label ID="lblWhichButton" runat="server" Text="WhichButton" Width="300px" Font-Bold="true"></asp:Label>
</td>
</tr>
<tr>
<td >
</td>
<td>
<asp:Label ID="lblPartners" runat="server" Text="Partners " Width="100px" Font-Bold="true"></asp:Label>
  
<asp:DropDownList id="PartnerList"
AutoPostBack="False"
runat="server"/>
    
<asp:Button ID="btn_AssignPartner" runat="server" Text="Assign Partner" />
<asp:Button ID="btn_RemovePartner" runat="server" Text="Remove Partner" />
             
            
            
            
<asp:Button ID="btn_Exit" runat="server" Text="Exit" />
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
Comment