轉帖|其它|編輯:郝浩|2011-06-23 11:36:47.000|閱讀 928 次
概述:
HIS系統中DEV控件的使用,相信有不少人在研究這一塊,最近正巧在研究HIS系統,特別將這塊的研究成果拿出來和大家分享。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
HIS系統中DEV控件的使用,相信有不少人在研究這一塊,最近正巧在研究HIS系統,特別將這塊的研究成果拿出來和大家分享。
HIS中關于這塊我們需要了解這2塊控件數據列表控件-XtraGrid、模糊篩選控件-lookUpEdit,
數據列表控件-XtraGrid 基本綁定只需要指定他的數據源即可,如gridControl_test.DataSource = dt;
數據列表控件-XtraGrid
自定義列名,顯示列表標題
各種合計,顯示頁腳
最終實現效果的代碼
namespace DevDemo
{
partial class Form1
{
/// <summary>
/// 必需的設計器變量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
/// <param name="disposing">如果應釋放托管資源,為 true;否則為 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗體設計器生成的代碼
/// <summary>
/// 設計器支持所需的方法 - 不要
/// 使用代碼編輯器修改此方法的內容。
/// </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;
}
}
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:網絡轉載