using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
|
namespace IStation.WinFrmUI.CalcErQu
|
{
|
public partial class PointTimeListDispCtrl : UserControl
|
{
|
public PointTimeListDispCtrl()
|
{
|
InitializeComponent();
|
|
this.gridView1.OptionsDetail.ShowDetailTabs = false;//不显示TAB名
|
this.gridView1.OptionsView.ShowGroupPanel = false;//隐藏最上面的GroupPanel
|
this.gridView1.OptionsSelection.MultiSelect = false;//单选
|
//this.gridViewMain.OptionsBehavior.Editable = false;//只读
|
this.gridView1.IndicatorWidth = 4;
|
this.gridView1.RowHeight = 30;
|
//this.gridView1.RowClick += new DevExpress.XtraGrid.Views.Grid.RowClickEventHandler(this.GridViewMain_RowClick);
|
//this.gridViewMain.CustomDrawRowIndicator += new DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventHandler(this.GridViewMain_CustomDrawRowIndicator);
|
//this.gridViewMain.CustomUnboundColumnData += new DevExpress.XtraGrid.Views.Base.CustomColumnDataEventHandler(this.GridViewMain_CustomUnboundColumnData);
|
//this.gridViewMain.DoubleClick += new System.EventHandler(this.GridViewMain_DoubleClick);
|
//this.gridView1.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(this.GridViewMain_RowCellClick);
|
//this.gridView1.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(this.gridViewMain_CellValueChanged);
|
|
}
|
public void SetBindingData(IStation.CalcModel.AnaPrj anaPrj)
|
{
|
if (anaPrj == null)
|
return;
|
|
|
|
this.bindingSourceGrid2.DataSource = anaPrj.GetAllPointTimeList();
|
this.bindingSourceGrid2.ResetBindings(false);
|
}
|
|
}
|
}
|