前台代码:

    <div style=" clear:both; width:800px; text-align:center; margin-left:auto; margin-right:auto; margin-left:270px">
<table>
<tr>
<td style="font-weight: bold; font-size: 20px; text-align: center"
class="style556">
<asp:Label ID="lblTitle" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
时间:<asp:DropDownList ID="ddlDate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlDate_SelectedIndexChanged">
</asp:DropDownList>
 
</td>
</tr>
<tr>
<td style="text-align:right">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate> <yyc:SmartGridView ID="sgvFile" runat="server" AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="Id" OnPageIndexChanging="SmartGridView_PageIndexChanging" PageSize="30"
SkinID="UnpagedWrap" Width="790px" MergeCells="5,6,7,8">
<Columns>
<asp:BoundField DataField="Id" HeaderText="Id" Visible="False" />
<asp:TemplateField HeaderText="方向">
<ItemTemplate>
<asp:Label ID="lbyinyong" runat="server" Text='<%# Eval("LeftOrRight").ToString()=="1"?"进洞口":"出洞口" %>'></asp:Label>
</ItemTemplate>
<ItemStyle Width="70px" />
</asp:TemplateField>
<asp:BoundField DataField="ClassName" HeaderText="工序名称" />
<asp:BoundField DataField="AllLength" DataFormatString="{0:0.##}" HeaderText="长度<br/>"
HtmlEncode="False" />
<asp:TemplateField HeaderText="截止上日末<br/>数量(m)">
<ItemTemplate>
<%# Convert.ToInt32(Eval("LeftOrRight")) == 1 ? Eval("AllFinishL") : Eval("AllFinishR")%>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="FinishNumber" DataFormatString="{0:0.##}" HeaderText="本日数量<br/>(m)"
HtmlEncode="False" />
<asp:BoundField DataField="AllFinish" DataFormatString="{0:0.##}" HeaderText="累计完成<br/>数量(m)"
HtmlEncode="False" />
<asp:BoundField DataField="PercentFinish" DataFormatString="{0:0.##}%" HeaderText="累计完成<br/>百分比"
HtmlEncode="False" />
<asp:BoundField DataField="NoFinishNumber" DataFormatString="{0:0.##}" HeaderText="剩余量<br/>(m)"
HtmlEncode="False" />
<asp:BoundField DataField="AddDate" DataFormatString="{0:d}" HeaderText="日期" HtmlEncode="False"
ReadOnly="True">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField HeaderText="监理<br>审核">
<ItemTemplate>
<asp:Label ID="Label1" Text='<%# zhy_CommClass.zhyPageView.IsPassView(Eval("Pass"), "已审", "<font color=red>未审</font>") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</yyc:SmartGridView> </ContentTemplate>
<Triggers>
  <asp:AsyncPostBackTrigger ControlID="ddlDate" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
</table>
</div>

  

DropdownList异步刷新GridView数据的更多相关文章

  1. 【asp.net】将GridView数据导出Excel

    概要: 中午睡了一会,醒来的时候看到老师叫我去办公室,需求是这样的,把excel表中的每个同学,判断图片目录中是否有对应的照片(图片的名字用的学号或身份证号码) 没有对应图片的学生记录,存入自己的数据 ...

  2. DropDownList和GridView用法

    DropDownList和GridView用法   DropDownList控件和GridView控件在Asp.net中相当常用,以下是控件的解释,有些是常用的,有些是偶尔的,查找.使用.记录,仅此而 ...

  3. ScrollView嵌套ListView,GridView数据加载不全问题的解决

    我们大家都知道ListView,GridView加载数据项,如果数据项过多时,就会显示滚动条.ScrollView组件里面只能包含一个组件,当ScrollView里面嵌套listView,GridVi ...

  4. 使用自定的Adapter绑定ListView/GridView数据

    使用自定的Adapter绑定ListView/GridView数据(地址) 对于ListView/Gridview的数据绑定, google提供了一些Adapter的模板, 自己也可以自定义一些个性化 ...

  5. C# DevExpress 的gridControl或gridView数据导出失败解决方法

    来自:http://blog.csdn.net/lybwwp/article/details/8049464 谢谢 在使用DevExpress 的GridPanel控件的时候出现了一个莫名其妙的现象, ...

  6. Gridview数据导出到ExcelWord 防止出现乱码

    1.页面中添加绿色字体代码<%@ Page Language="C#" CodeFile="111.aspx.cs" Inherits="111 ...

  7. 在ASP.NET中将GridView数据导出到Word、Excel

    在ASP.NET中将GridView数据导出到Word.Excel asp.net,导出gridview数据到Word,Excel,PDF   #region Export to Word, Exce ...

  8. 动态横向(水平)合并GridView数据行DataRow的列

    前一段时间,Insus.NET有写过<动态合并GridView数据行DataRow的列>http://www.cnblogs.com/insus/p/3238348.html, 那是纵向( ...

  9. ASP.NET中GridView数据导出到Excel

    /// <summary> /// 导出按钮 /// </summary> /// <param name="sender"></para ...

随机推荐

  1. 利用 MySQL 技能学习 DB2 Express: DB2 与 MySQL 的管理任务和基本任务

    原文地址:http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0602tham2/index.html 简单介绍 管理不 ...

  2. js 自定义事件 包含 添加、激活、销毁

    1.思路 (1)构思 var eventTarget = { addEvent: function(){ //添加事件 }, fireEvent: function(){ //触发事件 }, remo ...

  3. 简易推荐引擎的python实现

    代码地址如下:http://www.demodashi.com/demo/12913.html 主要思路 使用协同过滤的思路,从当前指定的用户过去的行为和其他用户的过去行为的相似度进行相似度评分,然后 ...

  4. 初次玩耍lucene.net,一个小小的记录

    lucene.net虽说是强大,但是我还是一年前第一次玩耍,然后就没有然后了,最近准备养成记录博客的习惯了,所以又玩了玩,回来记录一下 首先新建一个类,便于调用 public class Lucene ...

  5. silverlight RadGridView总结二(转载)

    系列二    实现RadGridView行中添加不同控件,并在控件中绑定不同的数据源    先上一段前台代码 <telerik:RadGridView Grid.Row="2" ...

  6. mysql分组取最大(最小、最新、前N条)条记录

    在数据库开发过程中,我们要为每种类型的数据取出前几条记录,或者是取最新.最小.最大等等,这个该如何实现呢,本文章向大家介绍如何实现mysql分组取最大(最小.最新.前N条)条记录.需要的可以参考一下. ...

  7. xcode,不要将.a文件拖到xcode里

    如果将.a文件拖到xcode里,它自动生成的search path是错的.导致奇怪的编译错误,非常坑.这是xcode的一个bug. 或者为了省事直接将.a拖进xcode也行,但记着去Library S ...

  8. atitit.解决struts2 SpringObjectFactory.getClassInstance NullPointerException  v2 q31

    atitit.解决struts2 SpringObjectFactory.getClassInstance NullPointerExceptionv2 q31 1. #--现象 java.lang. ...

  9. MII_GMII_RGMII_RMII_SMII_SSMII_TBI_RTBI

    简介 MII是英文Medium Independent Interface的缩写,翻译成中文是“介质独立接口”,该接口一般应用于以太网硬件平台的MAC层和PHY层之间,MII接口的类型有很多,常用的有 ...

  10. 解决js下跳转无referer的方法

    HTTP Header referer这玩意主要是告诉人们我是从哪儿来的,就是告诉人家我是从哪个页面过来的,可以用于统计访问本网站的用户来源,也可以用来防盗链.获取这个东西最好的方式是js,如果在服务 ...