示例#1
0
        public void SetData(ref DataRow row)
        {
            try
            {
                if (row == null)
                {
                    return;
                }

                if (this.ultraDataSource1.Rows.Count == 0)
                {
                    CommonMethod.InitUserControl(ref ultraDataSource1, ref ultraGrid1);
                }

                CommonMethod.ResetUltraDataSource(ref ultraDataSource1, ref ultraGrid1);

                for (int i = 0; i < ultraDataSource1.Band.Columns.Count; i++)
                {
                    try
                    {
                        if (row.Table.Columns.Contains(ultraDataSource1.Band.Columns[i].Key))
                        {
                            ultraDataSource1.Rows[0][i] = row[ultraDataSource1.Band.Columns[i].Key];
                        }
                    }
                    catch { }
                }
            }
            catch { }
        }
示例#2
0
        public ucBilletFlowCard()
        {
            InitializeComponent();

            try
            {
                this.ultraGrid1.ClickCellButton += new Infragistics.Win.UltraWinGrid.CellEventHandler(this.ultraGrid1_ClickCellButton);
                ultraGrid1.DisplayLayout.Bands[0].Columns["FD_ZC_ENTERDATETIME"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.EditButton;
                ultraGrid1.DisplayLayout.Bands[0].Columns["FD_ZC_ENTERDATETIME"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnMouseEnter;
                ultraGrid1.DisplayLayout.Bands[0].Columns["FD_ZZ_DATE"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.EditButton;
                ultraGrid1.DisplayLayout.Bands[0].Columns["FD_ZZ_DATE"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnMouseEnter;
            }
            catch { }

            try
            {
                ultraGrid1.DisplayLayout.Bands[0].Columns["FN_LENGTH"].ValueList = CommonMethod.GetValuelistLength();
                CommonMethod.InitUserControl(ref ultraDataSource1, ref ultraGrid1);
                CommonMethod.SetUltraGridCellReadOnly(ref ultraGrid1, true);
            }
            catch { }
        }
示例#3
0
 public void ResetData()
 {
     CommonMethod.InitUserControl(ref ultraDataSource1, ref ultraGrid1);
 }