Steven Xiao's blog

远行者需要智慧,更需要耐心! 工欲善其事,必先利其器。 授之鱼,不如授之渔。

博客园 首页 新随笔 联系 订阅 管理




<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="5" GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="15">
            <Columns>
                <asp:BoundField DataField="t_id" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                    SortExpression="t_id" />
                <asp:BoundField DataField="t_date" HeaderText="日期" SortExpression="t_date" />
                <asp:TemplateField HeaderText="报案号" SortExpression="t_bah">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("t_bah") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                         <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl ='<%# "../admin/update.aspx?id="+Eval("t_bah") %>'  Text='<%# Eval("t_bah") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="t_gh" HeaderText="调度员工号" SortExpression="t_gh" />
                <asp:BoundField DataField="t_name" HeaderText="查勘人" SortExpression="t_name" />
                <asp:BoundField DataField="t_time" HeaderText="时间" SortExpression="t_time" />
                <asp:BoundField DataField="t_qh" HeaderText="区域" SortExpression="t_qh" />
                <asp:BoundField DataField="t_ftime" HeaderText="反馈时间" SortExpression="t_ftime" />
                <asp:BoundField DataField="t_kf" HeaderText="扣分" SortExpression="t_kf" />
                <asp:BoundField DataField="t_bj" HeaderText="备注" SortExpression="t_bj" />
                <asp:TemplateField HeaderText="修改">
                    <ItemTemplate>
                        <asp:Button ID="Button1" runat="server" PostBackUrl='<%# "../admin/update.aspx?id="+Eval("t_bah")%>' CausesValidation="false" CommandName="Edit"
                            Text="修改" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:Button ID="Button2" runat="server" PostBackUrl ='<%# "../admin/dele.aspx?id="+Eval("t_bah") %>' CausesValidation="false" CommandName="Delete"
                            Text="删除" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <RowStyle BackColor="Ivory" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Blue" HorizontalAlign="Left" />
            <HeaderStyle BackColor="#CC6600" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="#D0D7AE" />
        </asp:GridView>

posted on 2007-06-08 20:53  Steven Xiao  阅读(1347)  评论(0编辑  收藏  举报