Hi everyone,
I tried to set the epi combo property for the AutoWidthOption to TextWidth but it doesn’t affect the columns and it doesn’t show the third column .Is there a way to expand and adjust the text? I call this method to retrieve the materials from a job
private void GetJobMaterials(string jobNumber, int assemblySeq)
{
bool recSelected;
string whereClause = “JobNum = '” + jobNumber + "' and AssemblySeq = " + assemblySeq.ToString() ;
if(cmbMTLHidden.DataSource != null ) (cmbMTLHidden.DataSource as DataSet).Clear();
Dictionary<int,string> jobMtlList = new Dictionary<int,string>();DataSet mtlDS = Ice.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, "JobMtlSearchAdapter", out recSelected, false, whereClause); //Hide Not Required Columns foreach(DataColumn dc in mtlDS.Tables[0].Columns) { if(dc.ColumnName != "PartNum" && dc.ColumnName != "MtlSeq" && dc.ColumnName != "Description") dc.ColumnMapping = MappingType.Hidden; } string partDesc = string.Empty; /*foreach(DataRow dr in mtlDS.Tables[0].Rows) { partDesc = string.Empty; partDesc = dr["Description"].ToString(); //partDesc = partDesc.Substring(0,partDesc.Length/2); jobMtlList.Add((int)dr["MtlSeq"],dr["PartNum"].ToString() + " | " + partDesc); }*/ cmbMTLHidden.DataSource = mtlDS ; //cmbMTLHidden.DisplayMember = "MtlSeq"; cmbMTLHidden.ValueMember = "MtlSeq";
}
Thanks a lot.