62,046
社区成员
发帖
与我相关
我的任务
分享
private void BindData()
{
//ProjectAdditionalDataCondition condition = ConditionPageHelper.GetCondition<ProjectAdditionalDataCondition>(ViewState);
string projectNumber = Request.GetQueryString("projectNumber");
Hashtable ht = new Hashtable();
if (!string.IsNullOrEmpty(projectNumber))
ht.Add("ProjectNumber", projectNumber);
IProjectAdditionalDataDao dao = IoCContainer.Get<IProjectAdditionalDataDao>();
anp.RecordCount = dao.SelectCount(ht);
gv.DataSource = dao.SelectByPage(anp.StartRecordIndex, anp.PageSize, ht);
gv.DataBind();
}
<asp:GridView ID="gv" runat="server" CssClass="list-table center" AutoGenerateColumns="False"
DataKeyNames="Id" OnRowDeleting="gv_RowDeleting" OnRowDataBound="gv_RowDataBound" >
<Columns>
<asp:BoundField HeaderText="流水号" DataField="Id"/>
其他表头我就略了。。。。。