轉(zhuǎn)帖|其它|編輯:郝浩|2011-06-23 11:36:47.000|閱讀 928 次
概述:
HIS系統(tǒng)中DEV控件的使用,相信有不少人在研究這一塊,最近正巧在研究HIS系統(tǒng),特別將這塊的研究成果拿出來(lái)和大家分享。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門(mén)軟控件火熱銷(xiāo)售中 >>
HIS系統(tǒng)中DEV控件的使用,相信有不少人在研究這一塊,最近正巧在研究HIS系統(tǒng),特別將這塊的研究成果拿出來(lái)和大家分享。
HIS中關(guān)于這塊我們需要了解這2塊控件數(shù)據(jù)列表控件-XtraGrid、模糊篩選控件-lookUpEdit,
數(shù)據(jù)列表控件-XtraGrid 基本綁定只需要指定他的數(shù)據(jù)源即可,如gridControl_test.DataSource = dt;
數(shù)據(jù)列表控件-XtraGrid
自定義列名,顯示列表標(biāo)題
各種合計(jì),顯示頁(yè)腳
最終實(shí)現(xiàn)效果的代碼
namespace DevDemo
{
partial class Form1
{
/// <summary>
/// 必需的設(shè)計(jì)器變量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
/// <param name="disposing">如果應(yīng)釋放托管資源,為 true;否則為 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗體設(shè)計(jì)器生成的代碼
/// <summary>
/// 設(shè)計(jì)器支持所需的方法 - 不要
/// 使用代碼編輯器修改此方法的內(nèi)容。
/// </summary>
private void InitializeComponent()
{
this.btn_grid = new DevExpress.XtraEditors.SimpleButton();
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
this.SuspendLayout();
//
// btn_grid
//
this.btn_grid.Location = new System.Drawing.Point(167, 69);
this.btn_grid.Name = "btn_grid";
this.btn_grid.Size = new System.Drawing.Size(93, 23);
this.btn_grid.TabIndex = 0;
this.btn_grid.Text = "GridView示例";
this.btn_grid.Click += new System.EventHandler(this.btn_grid_Click);
//
// simpleButton1
//
this.simpleButton1.Location = new System.Drawing.Point(167, 99);
this.simpleButton1.Name = "simpleButton1";
this.simpleButton1.Size = new System.Drawing.Size(75, 23);
this.simpleButton1.TabIndex = 1;
this.simpleButton1.Text = "模糊查詢";
this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(573, 445);
this.Controls.Add(this.simpleButton1);
this.Controls.Add(this.btn_grid);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.SimpleButton btn_grid;
private DevExpress.XtraEditors.SimpleButton simpleButton1;
}
}
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:網(wǎng)絡(luò)轉(zhuǎn)載