tangxu
2024-06-11 e08f18c84c96ca794407f4fcb737b26fa76c0a1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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);
        }
      
    }
}