hi there are few columns in the grid view which are fixed and in i used template field for this purpose. I have assigned the bind property to each column in edit item template but it didnt show values on these fixed value columns.here is grid view code
please help me to resovle this
<asp:GridView ID="noticeDetails" runat="server" AutoGenerateEditButton="True"
onrowediting="noticeDetails_RowEditing1"
onrowupdated="noticeDetails_RowUpdated1"
onrowupdating="noticeDetails_RowUpdating1"
BorderWidth="1px" Width="100%" CellPadding="10">
<Columns>
<asp:TemplateField HeaderText="PromoStartDate" >
<EditItemTemplate>
<asp:Label ID="PromoStartDate" runat="server" Text='<%# Bind("txtadd1") %>'></asp:Label>
</EditItemTemplate> </asp:TemplateField>
<asp:TemplateField HeaderText="PromoEndDate" > <EditItemTemplate>
<asp:Label ID="PromoEndDate" runat="server" Text='<%# Bind("txtadd2") %>'></asp:Label>
</EditItemTemplate> </asp:TemplateField>
<asp:TemplateField HeaderText="ExecutionDate" > <EditItemTemplate>
<asp:Label ID="ExecutionDate" runat="server" Text='<%# Bind("txtadd3") %>'></asp:Label>
</EditItemTemplate> </asp:TemplateField>
<asp:TemplateField HeaderText="ExpiryDate" > <EditItemTemplate>
<asp:Label ID="ExpiryDate" runat="server" Text='<%# Bind("txtadd4") %>'></asp:Label>
</EditItemTemplate> </asp:TemplateField>
<asp:TemplateField HeaderText="CampaignName" > <EditItemTemplate>
<asp:Label ID="CampaignName" runat="server" Text='<%# Bind("txtaddee") %>'></asp:Label>
</EditItemTemplate> </asp:TemplateField>
<asp:TemplateField HeaderText="CampaignIDRange" >
<EditItemTemplate>
<asp:Label ID="CampaignIDRange" runat="server" Text='<%# Bind("Txtadd5") %>'></asp:Label>
</EditItemTemplate> </asp:TemplateField>
</Columns> </asp:GridView>