<asp:GridView ID="GViewCarrierType" runat="server" AllowPaging="True" DataKeyNames="" AutoGenerateColumns="False" AutoGenerateEditButton="True" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="5" OnPageIndexChanging="GViewCarrierType_PageIndexChanging" OnRowCancelingEdit="GViewCarrierType_RowCancelingEdit" OnRowEditing="GViewCarrierType_RowEditing" OnRowUpdating="GViewCarrierType_RowUpdating"> <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#EFF3FB" /> <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <EditRowStyle BackColor="AliceBlue" /> <AlternatingRowStyle BackColor="White" /> <Columns> <asp:TemplateField ItemStyle-HorizontalAlign="Center"> <HeaderTemplate> Carrier Type</HeaderTemplate> <ItemTemplate> <%#Eval ("CarrierTypeName") %></ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtCTName" runat="server" Text='<%#Eval ("CarrierTypeName") %>'></asp:TextBox></EditItemTemplate> <FooterTemplate> <asp:TextBox ID="txtnewCTName" runat="server"></asp:TextBox></FooterTemplate> </asp:TemplateField> <asp:TemplateField ItemStyle-HorizontalAlign="Center"> <HeaderTemplate> Mode Of Transport</HeaderTemplate> <ItemTemplate> <%#Eval ("MTName") %></ItemTemplate> <EditItemTemplate> <asp:DropDownList ID="ddlMT" runat="server" AppendDataBoundItems="true" DataSource='<%# GetMTName()%>' SelectedValue='<%#Eval("MTName")%>' DataTextField="MTName" DataValueField="MTID" > </asp:DropDownList> </EditItemTemplate> <FooterTemplate> <asp:DropDownList ID="ddlnewMT" runat="server" DataSource='<%# GetMTName()%>' DataTextField="MTName" DataValueField="MTID" ></asp:DropDownList></FooterTemplate> </asp:TemplateField> <asp:TemplateField ItemStyle-HorizontalAlign="Center"> <HeaderTemplate> IsActive</HeaderTemplate> <ItemTemplate> <asp:CheckBox ID="chkstatus" runat="server" Checked='<%#Eval("CTIsActive")%>' Enabled="false" /></ItemTemplate> <EditItemTemplate> <asp:CheckBox ID="chkstatus" runat="server" Checked='<%#Eval("CTIsActive")%>' /></EditItemTemplate> <FooterTemplate> <asp:CheckBox ID="chknewstatus" runat="server" /></FooterTemplate> </asp:TemplateField> <asp:TemplateField ItemStyle-HorizontalAlign="Center"> <FooterTemplate> <asp:Button ID="btnsave" runat="server" Text="Save" OnClick="InsertCarrierType" /></FooterTemplate> </asp:TemplateField> </Columns> </asp:GridView>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)