public override void Init() { DBBaseName = "UCSearchMC"; dataGridView.CheckEDSM = true; dataGridView.MakeDoubleBuffered(); dataGridView.DefaultCellStyle.WrapMode = DataGridViewTriState.True; dataGridView.RowTemplate.Height = Font.ScalePixels(26); dataGridView.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCells; // NEW! appears to work https://msdn.microsoft.com/en-us/library/74b2wakt(v=vs.110).aspx var enumlist = new Enum[] { EDTx.SearchMaterialsCommodities_ColumnDate, EDTx.SearchMaterialsCommodities_ColumnStar, EDTx.SearchMaterialsCommodities_ColumnLocation, EDTx.SearchMaterialsCommodities_ColumnCurrentDistance, EDTx.SearchMaterialsCommodities_ColumnPosition, EDTx.SearchMaterialsCommodities_buttonExtFind, EDTx.SearchMaterialsCommodities_label2, EDTx.SearchMaterialsCommodities_label1 }; BaseUtils.Translator.Instance.TranslateControls(this, enumlist, new Control[] { }); dataGridView.Init(discoveryform); itemlist = MaterialCommodityMicroResourceType.GetAll(); Array.Sort(itemlist, (left, right) => left.Name.CompareTo(right.Name)); var list = (from x in itemlist select x.Name + " (" + x.TranslatedCategory + ", " + x.TranslatedType + (x.Rarity ? ", Rare Commodity".T(EDTx.SearchMaterialsCommodities_RareCommodity):"") + ")"); comboBoxCustomCM1.Items.AddRange(list); comboBoxCustomCM1.SelectedIndex = Math.Min(GetSetting(dbCM1, 0), list.Count() - 1); comboBoxCustomCM2.Items.Add("----"); comboBoxCustomCM2.Items.AddRange(list); comboBoxCustomCM2.SelectedIndex = Math.Min(GetSetting(dbCM2, 0), list.Count() - 1); comboBoxCustomCMANDOR.Items.AddRange(new string[] { "AND".T(EDTx.SearchMaterialsCommodities_AND), "OR".T(EDTx.SearchMaterialsCommodities_OR) }); comboBoxCustomCMANDOR.SelectedIndex = GetSetting(dbCMANDOR, 0); dataGridView.GotoEntryClicked += (he) => { uctg.GotoPosByJID(he.Journalid); }; }