<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="SprayProjectCompletionStatus.aspx.cs" Inherits="VMT.SprayProjectCompletionStatus" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphJavaScriptContentPlaceHolder" runat="server">

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitleContentPlaceHolder" runat="server">
    <div id="CssPageTitle">
        <h1>
            Spray Project Completion Report
        </h1>
    </div>
    <div id="SubPageTitle">
        <!-- OPTIONAL SUB PAGE TITLE -->
     
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMainContentPlaceHolder" runat="server">
    <script language="javascript" type="text/javascript">
        function MakeStaticHeader(gridId, height, width, headerHeight, isFooter) {
            var tbl = document.getElementById(gridId);
            if (tbl) {
                var DivHR = document.getElementById('DivHeaderRow');
                var DivMC = document.getElementById('DivMainContent');
                var DivFR = document.getElementById('DivFooterRow');

                //*** Set divheaderRow Properties ****
                DivHR.style.height = headerHeight + 'px';
                DivHR.style.width = (parseInt(width) - 16) + 'px';
                DivHR.style.position = 'relative';
                DivHR.style.top = '0px';
                DivHR.style.zIndex = '10';
                DivHR.style.verticalAlign = 'top';

                //*** Set divMainContent Properties ****
                DivMC.style.width = width + 'px';
                DivMC.style.height = height + 'px';
                DivMC.style.position = 'relative';
                DivMC.style.top = -headerHeight + 'px';
                DivMC.style.zIndex = '1';

                //*** Set divFooterRow Properties ****
                DivFR.style.width = (parseInt(width) - 16) + 'px';
                DivFR.style.position = 'relative';
                DivFR.style.top = -headerHeight + 'px';
                DivFR.style.verticalAlign = 'top';
                DivFR.style.paddingtop = '2px';

                if (isFooter) {
                    var tblfr = tbl.cloneNode(true);
                    tblfr.removeChild(tblfr.getElementsByTagName('tbody')[0]);
                    var tblBody = document.createElement('tbody');
                    tblfr.style.width = '100%';
                    tblfr.cellSpacing = "0";
                    tblfr.border = "0px";
                    tblfr.rules = "none";
                    //*****In the case of Footer Row *******
                    tblBody.appendChild(tbl.rows[tbl.rows.length - 1]);
                    tblfr.appendChild(tblBody);
                    DivFR.appendChild(tblfr);
                }
                //****Copy Header in divHeaderRow****
                DivHR.appendChild(tbl.cloneNode(true));
            }
        }



        function OnScrollDiv(Scrollablediv) {
            document.getElementById('DivHeaderRow').scrollLeft = Scrollablediv.scrollLeft;
            document.getElementById('DivFooterRow').scrollLeft = Scrollablediv.scrollLeft;
        }


    </script>
    <%--<script type='text/javascript'>
        xAddEventListener(window, 'load',
            function () { new xTableHeaderFixed('gvTheGrid', 'table-container', 0); }, false);
    </script>--%>
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
      <asp:UpdatePanel ID="UpdatePanel2" runat="server">
          <ContentTemplate>
               <div id="loaderdiv">
    <asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="UpdatePanel2" dynamiclayout="true">
                        <progresstemplate>

                           <img src="resource_gallery/graphics/loader.gif" class="ajax-loader">

                        </progresstemplate>
                    </asp:updateprogress>

                    </div>
              <div style="text-align:right;"><a href="default.aspx">Home</a> <strong>&#8249;&#8249;</strong> <a href="CurrentYTD.aspx">Current</a> <strong>&#8249;&#8249;</strong>Spray Project Completion Report</div>
                        <div >
             <fieldset class="masterform" style="padding:0px;">
                <legend>Project Status</legend> 
                <div style=" width: 100%; height:300px; ">
                    <table>
                        <tr>
                            <td> Business Unit:
                                <asp:DropDownList ID="ddlBUnit" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlBUnit_SelectedIndexChanged" OnDataBinding="ddlBUnit_DataBinding">
                                </asp:DropDownList>
                            </td>

                            <%--<td> Spray Year:
                                <asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged" OnDataBound="ddlYear_DataBound">
                                </asp:DropDownList>
                            <td/>
                            <td>
                                Status:
                                <asp:DropDownList ID="ddlBidStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlBidStatus_SelectedIndexChanged" OnDataBound="ddlBidStatus_DataBound"></asp:DropDownList>
                            </td>--%>


                            <td> Project/Event:
                                <asp:DropDownList ID="ddlEventCode" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlEventCode_SelectedIndexChanged" OnDataBound="ddlEventCode_DataBound">  
                                </asp:DropDownList>
                            </td>
                             <%--<td> <asp:Button ID="btnGo" runat="server" Text="Go" CssClass="FormButton" OnClick="btnGo_Click"/></td> --%>
                        </tr>
                    </table>
                    <br />
                <%--<div style=" width: 99%; overflow-x: scroll; position: relative;" > <br />--%>
                    <div id="DivRoot" align="left">
                        <div style="overflow: hidden;" id="DivHeaderRow">
                        </div>

                        <div style="overflow:scroll;" onscroll="OnScrollDiv(this)" id="DivMainContent">
                            <asp:GridView ID="gdvWorkArea" runat="server" HeaderStyle-BackColor="#98C8DE"></asp:GridView>
                        </div>

                        <div id="DivFooterRow" style="overflow:hidden">
                        </div>
                    </div>
                <%--<div id="table-container"  > 
                 <asp:GridView ID="gdvWorkArea" runat="server"></asp:GridView>
               <asp:GridView ID="gdvWorkArea" runat="server" BorderColor="#014567" CellPadding="3"  
                 AutoGenerateColumns="false" emptydatatext="No data in the data source." OnSorting="gdvWorkArea_Sorting"
                      AllowSorting="True" OnPreRender="gdvWorkArea_PreRender" CssClass="gvTheGrid">
                    <AlternatingRowStyle BackColor="#E9EFF2" />
                    <Columns>
                        <asp:TemplateField SortExpression="BUSINESS_UNIT"   HeaderStyle-Width="80px" ItemStyle-Width="80px" >
                            <HeaderTemplate>                                      
                                <asp:LinkButton  ID="LinkButton1" runat="server" Text="BUSINESS UNIT"  CommandName="Sort" CommandArgument="BUSINESS_UNIT" ForeColor="Black"/>                       
                            </HeaderTemplate >
                            <ItemTemplate>
                                <%# Eval("BUSINESS_UNIT") %>
                            </ItemTemplate>
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="EVENT_CODE"  HeaderStyle-Width="154px" ItemStyle-Width="154px">
                            <HeaderTemplate >
                                <asp:LinkButton ID="LinkButton2"  runat="server" Text="PROJECT EVENT"  CommandName="Sort" CommandArgument="EVENT_CODE" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate >
                                  <a href='LocateSprayWA_Map.aspx?EVENT_CODE_ID=<%# Eval("EVENT_CODE_ID") %>&nm=<%# Eval("EVENT_CODE") %>' target="_blank">   <asp:Label ID="Label2" runat="server" Text='<%# Bind("EVENT_CODE") %>'></asp:Label> </a>
                                
                            </ItemTemplate>
                        </asp:TemplateField>

                      <asp:TemplateField SortExpression="EVENT_CODE_DESCRIPTION"   HeaderStyle-Width="127px" ItemStyle-Width="127px" >
                            <HeaderTemplate>                                      
                                <asp:LinkButton  ID="LinkButton3" runat="server" Text="PROJECT DESC"  CommandName="Sort" CommandArgument="EVENT_CODE_DESCRIPTION" ForeColor="Black"/>                       
                            </HeaderTemplate >
                            <ItemTemplate>
                                <%# Eval("EVENT_CODE_DESCRIPTION") %>
                            </ItemTemplate>
                        </asp:TemplateField>

                         

                          <asp:TemplateField SortExpression="RATE_TYPE"   HeaderStyle-Width="80px" ItemStyle-Width="80px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton4" runat="server" Text="RATE TYPE"  CommandName="Sort" CommandArgument="RATE_TYPE" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("RATE_TYPE") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                         <asp:TemplateField SortExpression="MILES_COMPLETED"   HeaderStyle-Width="146px" ItemStyle-Width="146px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton5" runat="server" Text="MILES COMPLETED"  CommandName="Sort" CommandArgument="MILES_COMPLETED" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("MILES_COMPLETED") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                         <asp:TemplateField SortExpression="TREATMENT_ACRES_COMPLETED"   HeaderStyle-Width="160px" ItemStyle-Width="160px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton6" runat="server" Text="TREAT ACRES COMP"  CommandName="Sort" CommandArgument="TREATMENT_ACRES_COMPLETED" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("TREATMENT_ACRES_COMPLETED") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>


                        <asp:TemplateField SortExpression="RETREAT_ACRES_COMPLETED"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton7" runat="server" Text="RETREAT ACRES COMP"  CommandName="Sort" CommandArgument="RETREAT_ACRES_COMPLETED" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("RETREAT_ACRES_COMPLETED") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="ACRES_COMPLETED"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton8" runat="server" Text="ACRES COMPLETED"  CommandName="Sort" CommandArgument="ACRES_COMPLETED" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("ACRES_COMPLETED") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                       
                        <asp:TemplateField SortExpression="'Initial Treatment 0'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton9" runat="server" Text="Initial Treatment 0_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 0'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 0'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 0'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton10" runat="server" Text="Initial Treatment 0_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 0'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 0'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 1'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton11" runat="server" Text="Initial Treatment 1_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 1'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 1'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 1'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton12" runat="server" Text="Initial Treatment 1_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 1'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 1'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 2'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton13" runat="server" Text="Initial Treatment 2_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 2'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 2'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 2'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton14" runat="server" Text="Initial Treatment 2_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 2'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 2'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 3'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton15" runat="server" Text="Initial Treatment 3_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 3'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 3'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 3'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton16" runat="server" Text="Initial Treatment 3_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 3'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 3'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 4'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton17" runat="server" Text="Initial Treatment 4_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 4'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 4'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 4'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton18" runat="server" Text="Initial Treatment 4_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 4'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 4'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 5'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton19" runat="server" Text="Initial Treatment 5_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 5'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 5'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 5'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton20" runat="server" Text="Initial Treatment 5_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 5'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 5'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 6'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton21" runat="server" Text="Initial Treatment 6_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 6'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 6'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 6'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton22" runat="server" Text="Initial Treatment 6_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 6'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 6'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 7'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton23" runat="server" Text="Initial Treatment 7_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 7'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 7'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 7'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton24" runat="server" Text="Initial Treatment 7_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 7'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 7'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 8'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton25" runat="server" Text="Initial Treatment 8_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 8'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 8'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 8'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton26" runat="server" Text="Initial Treatment 8_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 8'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 8'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 8MOW'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton27" runat="server" Text="Initial Treatment 8 MOW_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 8 MOW'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 8 MOW'_MILE") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 8 MOW'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton28" runat="server" Text="Initial Treatment 8 MOW_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 8 MOW'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 8 MOW'_ACRE") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 9'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton29" runat="server" Text="Initial Treatment 9_MILES"  CommandName="Sort" CommandArgument="'Initial Treatment 9'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 9'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Initial Treatment 9'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton30" runat="server" Text="Initial Treatment 9_ACRES"  CommandName="Sort" CommandArgument="'Initial Treatment 9'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Initial Treatment 9'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 0'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton31" runat="server" Text="ReTreatment 0_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 0'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 0'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 0'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton32" runat="server" Text="ReTreatment 0_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 0'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 0'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 1'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton33" runat="server" Text="ReTreatment 1_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 1'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 1'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 1'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton34" runat="server" Text="ReTreatment 1_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 1'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 1'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 2'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton35" runat="server" Text="ReTreatment 2_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 2'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 2'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 2'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton36" runat="server" Text="ReTreatment 2_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 2'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 2'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 0'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton37" runat="server" Text="ReTreatment 3_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 3'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 3'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 3'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton38" runat="server" Text="ReTreatment 3_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 3'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 3'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 4'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton39" runat="server" Text="ReTreatment 4_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 4'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 4'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 4'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton40" runat="server" Text="ReTreatment 4_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 4'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 4'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 5'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton41" runat="server" Text="ReTreatment 5_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 5'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 5'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 5'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton42" runat="server" Text="ReTreatment 5_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 5'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 5'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 6'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton43" runat="server" Text="ReTreatment 6_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 6'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 6'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 6'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton44" runat="server" Text="ReTreatment 6_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 6'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 6'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 7'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton45" runat="server" Text="ReTreatment 7_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 7'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 7'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 7'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton46" runat="server" Text="ReTreatment 7_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 7'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 7'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 8'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton47" runat="server" Text="ReTreatment 8_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 8'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 8'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 8'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton48" runat="server" Text="ReTreatment 8_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 8'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 8'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 8 MOW'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton49" runat="server" Text="ReTreatment 8 MOW_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 8 MOW'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 8 MOW'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 8 MOW'_ACRES"  HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton50" runat="server" Text="ReTreatment 8 MOW_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 8 MOW'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 8 MOW'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 9'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton51" runat="server" Text="ReTreatment 9_MILES"  CommandName="Sort" CommandArgument="'ReTreatment 9'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 9'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'ReTreatment 9'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton52" runat="server" Text="ReTreatment 9_ACRES"  CommandName="Sort" CommandArgument="'ReTreatment 9'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'ReTreatment 9'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Urban'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton53" runat="server" Text="Urban_MILES"  CommandName="Sort" CommandArgument="'Urban'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Urban'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Urban'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton54" runat="server" Text="Urban_ACRES"  CommandName="Sort" CommandArgument="'Urban'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Urban'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Rural'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton55" runat="server" Text="Rural_MILES"  CommandName="Sort" CommandArgument="'Rural'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Rural'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Rural'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton56" runat="server" Text="Rural_ACRES"  CommandName="Sort" CommandArgument="'Rural'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Rural'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Climbing'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton57" runat="server" Text="Climbing_MILES"  CommandName="Sort" CommandArgument="'Climbing'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Climbing'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Climbing'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton58" runat="server" Text="Climbing_ACRES"  CommandName="Sort" CommandArgument="'Climbing'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Climbing'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Flat'_MILES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton59" runat="server" Text="Flat_MILES"  CommandName="Sort" CommandArgument="'Flat'_MILES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Flat'_MILES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="'Flat'_ACRES"   HeaderStyle-Width="120px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton60" runat="server" Text="Flat_ACRES"  CommandName="Sort" CommandArgument="'Flat'_ACRES" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("'Flat'_ACRES") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#98C8DE" Width="7227px"/>
                    <SelectedRowStyle BackColor="#FFE98F" />
                </asp:GridView>
                </div>--%>
               
            </div>
       </fieldset>
        </div>
        <fieldset class="masterform">
            <div style=" width: 89%; height:32px; ">
            <table>
                <tr>
                    <td><asp:Button ID="btnExportExcel" runat="server" CssClass="FormButton" OnClick="btnExportExcel_Click" Visible="false" Text="Export To Excel" /></td>
                </tr>
            </table>
            </div>
        </fieldset>
      </ContentTemplate>
     </asp:UpdatePanel>
</asp:Content>
