using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using CoreFS.SA06; using Core.Mes.Client.Comm.Server; using Core.Mes.Client.Comm.Control; using Core.Mes.Client.Comm.Tool; using Infragistics.Win.UltraWinGrid; using Infragistics.Win; using CoreFS.CA06; using System.Net; using System.Collections; namespace Core.StlMes.Client.BuyBillet { public partial class RptProduction_detail : FrmBase { private DataTable mydate; private String myfixedcol; public RptProduction_detail(DataTable datetable,string Title,String fixedcol) { mydate = datetable; myfixedcol = fixedcol; InitializeComponent(); this.Text = Title; } private void RptProduction_detail_Load(object sender, EventArgs e) { getproductions(); } private void getproductions() { try { ultraGrid1.DataSource = mydate; if (myfixedcol != "") { ultraGrid1.DisplayLayout.UseFixedHeaders = true; foreach (Infragistics.Win.UltraWinGrid.UltraGridBand band in ultraGrid1.DisplayLayout.Bands) { foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn column in band.Columns) { if (column.Key != "material_no" && column.Key != "material_name") column.PerformAutoResize(Infragistics.Win.UltraWinGrid.PerformAutoSizeType.AllRowsInBand); if (column.Key == myfixedcol) { for (int i = column.Index; i >= 0; i--) { band.Columns[i].Header.Fixed = true; } } } } } ultraGrid1.Refresh(); } catch (Exception e) { MessageBox.Show(e.Message); } finally { } } } }