本人菜鸟。在用户控件加了gridview,源码已写好了,为什么编辑里什么也没有?求大神帮忙!
解决方案 »
- GridView 实现全选、反选、删除所选
- asp初学者,各位大侠我想实现点击TextBox把光标置于其内时显示一个日历控件的代码怎么写?
- 二级域名的问题
- 关于向DataGrid写数据的问题,在线等。
- _____菜鸟求个循环显示连接的问题______
- 用asp.net写的webservice(.asmx),可以用xmlrpc来进行访问吗?(急!)
- [求助]Web程序用户控件中搜索的问题!~
- 我想在表中只存0,1,2 但在客户端显示为“同意”“不同意”“请等待”怎么做?
- 我想编译code-behind文件的话应该怎么办?
- js中怎麼判斷某字符串中是否包含小數點?
- 贴代码 求解..
- 浏览器的显示控件的问题
<%@ Control Language="C#" CodeFile="EmpNumberNew.ascx.cs" Inherits ="Zznode.OA.Webs.MR.EmpNumberNew"%>
<link href="../lynn.css" type="text/css" rel="stylesheet"/><asp:GridView ID="GridView2" Runat="server" Width="100%" DataSourceID="odsBranchStaticNew"
AutoGenerateColumns="False" CssClass="table" OnRowDataBound="GridView2_RowDataBound" ShowFooter="True" OnInit="GridView2_Init" OnLoad="GridView2_Load" AllowPaging="False">
<HeaderStyle CssClass="Table_header" Font-Size=12px></HeaderStyle>
<Columns>
<asp:BoundField HeaderText="职能" DataField="FunName">
<ItemStyle Width="8%" HorizontalAlign=Center></ItemStyle>
</asp:BoundField>
<asp:BoundField HeaderText="总人数" HtmlEncode="False" DataField="Number">
<ItemStyle Width="8%" HorizontalAlign=Center></ItemStyle>
</asp:BoundField>
<asp:BoundField HeaderText="比例" HtmlEncode="False" DataField="bili">
<ItemStyle Width="8%" HorizontalAlign=Center></ItemStyle>
</asp:BoundField>
<asp:BoundField HeaderText="部门(结构)" DataField="Dep_JG">
<ItemStyle Width="10%" HorizontalAlign=Center></ItemStyle>
</asp:BoundField>
<asp:BoundField HeaderText="人数" HtmlEncode="False" DataField="number2">
<ItemStyle Width="5%" HorizontalAlign=Center></ItemStyle>
</asp:BoundField>
<asp:BoundField HeaderText="编制" HtmlEncode="False" DataField="allownumber" Visible="False">
<ItemStyle Width="5%" HorizontalAlign=Center></ItemStyle>
</asp:BoundField>
<asp:BoundField HeaderText="部门人员(行政)" DataField="Dep_JG"></asp:BoundField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="odsBranchStaticNew" Runat="server" TypeName="Zznode.OA.DA.MrBaseInf"
SelectMethod="GetStaffNumberStaticNew">
</asp:ObjectDataSource>
测试下,正如楼上所说的,