Increase epicombo width columns

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. :slight_smile:

I did it here but seems its clunky , let me know if there is a better solution.

private void NCRJobsGrid_BeforeCellListDropDown(object sender, Infragistics.Win.UltraWinGrid.CancelableCellEventArgs args)
	{
		// ** Place Event Handling Code Here **

			cmbMTLHidden.setVisibleColumnsWidth();
			cmbMTLHidden.Rows.Band.Columns[1].Width = 150;
			cmbMTLHidden.Rows.Band.Columns[2].Width = 300;

	}

Never mind this is linked to the width of the combo box so it doesn’t matter what I put to the column widths