DataGrid FAQ

来源:互联网 发布:mysql 命令行添加用户 编辑:程序博客网 时间:2024/05/10 22:04

 去掉dataGrid中小数后的零,Drop Float zero DataGrid

去掉dataGrid中小数后的零

<asp:BoundColumn DataField="SafeStore" HeaderText="安全庫存" DataFormatString="{0:f0}">

   DataFormatString="{0:f0}"

 

DataGrid CheckBox 綁定問題,顯示對號
2006年12月12日 星期二 下午 02:58

Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "happen"))

 

Checked屬性

 

  private void DGStoreSituation_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
  {
   if(e.NewPageIndex <0)
   {   
    DGStoreSituation.CurrentPageIndex = 0;
   }
   else
   {
    DGStoreSituation.CurrentPageIndex = e.NewPageIndex;
   }

   BindDetails();
  }

原创粉丝点击