ASP.NET中的DataGrid的屬性 (轉)
////////////////分頁處理;
void Page_Load( sender, EventArgs e)
{
if (CheckBox1.Checked)
ItemsGrid.PagerStyle.Mode=PagerMode.NumericPages;
else
ItemsGrid.PagerStyle.Mode=PagerMode.NextPrev;
if (!IsPostBack)
{
start_index = 0;
ItemsGrid.VirtualItemCount=100;
}
BindGrid();
}
/////////////邦定公用;
void BindGrid()
{
ItemsGrid.Data=CreateDataSource();
ItemsGrid.DataBind();
}
///////////////////////// 的鏈 接在前面已經發表過的,!
<:DataGrid id="ItemsGrid" runat="server"
BorderColor="black"
BorderWidth="1"
CellPadding="3" //行間隔;
AllowPaging="true" //換頁開關;
AllowCustomPaging="true" //
BackImageUrl="Imagesimage1.jpg" //背景圖象;
AutoGenerateColumns="false" //改變屬性資料格會不一樣有:true & false;
OnPageIndd="Grid_Change"> //分頁程式ID
//分頁預設樣式;
Position="Bottom"
PageButtonCount="5"
BackColor="#00aaaa">
DataField="StringValue"/>
DataField="CurrencyValue"
DataFormatString="{0:c}">
//選擇數字顯示分頁
AutoPostBack="true"
runat="server"/>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752019/viewspace-977176/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Swift 中的屬性Swift
- Python中的屬性Python
- 以太坊中的全域性屬性
- vue中的computed屬性Vue
- Spring的BeanFactoryPostProcessor中屬性SpringBean
- 淺談CSS3中display屬性的Flex佈局(轉)CSSS3Flex
- 理解 Kotlin 中的屬性(property)Kotlin
- C#中屬性的解析C#
- 協議中的私有屬性協議
- python中的屬性認識Python
- SQL Server 中的 ACID 屬性SQLServer
- CSS中content屬性的妙用CSS
- ASP.NET Core預設容器實現Controller的屬性注入ASP.NETController
- css屬性與js中style物件的屬性對應表CSSJS物件
- input屬性disabled和readonly的區別(轉)
- package.json中的重要屬性PackageJSON
- css3中的animation屬性CSSS3
- 淺談 Swift 中的屬性(PropertySwift
- Rust中的derive屬性詳解Rust
- 一個轉換資料屬性名的工具
- ASP.NET Aries DataGrid 配置表頭說明文件ASP.NET
- jQuery中判斷input的disabled屬性jQuery
- (八)Mybatis當中#{}常用屬性的用法MyBatis
- vue例項中watch屬性的使用Vue
- python中__setattr__的屬性設定Python
- Python 類的屬性與例項屬性Python
- logback 的屬性
- 玩轉ASP.NET Core中的日誌元件ASP.NET元件
- Python中的私有屬性與私有方法Python
- Vue — vue中帶有$的屬性和方法Vue
- Vue 標籤中的ref屬性和refsVue
- JavaScript 中的延遲載入屬性模式JavaScript模式
- Odoo ORM研究1 - BaseModel中的類屬性的作用OdooORM
- Object物件的屬性Object物件
- 檔案的屬性
- Cookie 的 SameSite 屬性Cookie
- GObject的物件屬性GoObject物件
- css的background屬性CSS
- CSS display屬性的表格佈局相關屬性的解釋CSS