I have a seemingly trivial question.
How to change the style of the font inside the select element of a DropDownList column? In firefox the font is larger than in the inactive cells and thus does not fit inside the cell. The only font property that I am setting is FrameStyle / Font-Size
Thanks.
Hi,
I'm having the same exact problem. Was there ever a correct answer on how to do this through code?
Thanks!
Hi.
I'm having this same problem. I've tried setting the ValueList.Style.Font.Size in the InitializeLayout method as well as at design time as indicated in the above response. Neither seems to have any effect on the font size in the drop down list. I'm using Infragistics version 9.1. Any other way to do this? My code is below.
With e.Layout.Bands(0).Columns.FromKey("AmountType") .BaseColumnName = "AmountType" .Header.Caption = "Amount Type" .Width = Unit.Pixel(120) .Hidden = False .IsBound = True .AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes .Type = Infragistics.WebUI.UltraWebGrid.ColumnType.DropDownList .CellStyle.HorizontalAlign = HorizontalAlign.Left Dim AmountTypes As New Infragistics.WebUI.UltraWebGrid.ValueList() With AmountTypes .DataSource = AmountTypeList .ValueMember = "TypeID" .DisplayMember = "TypeName" .DataBind() End With .ValueList.Style.Font.Size = FontUnit.Point(8) .ValueList = AmountTypes End With
Hello,
I think what you need is available off the ValueList-Style property for the respective column. There are tens of different display settings there, for example:
<igtbl:UltraGridColumn BaseColumnName="CompanyName" IsBound="True" Type="DropDownList" Key="CompanyName" ValueList-Style-Font-Size="15px" ValueList-Style-Font-Bold="true">
Please, let me know if this helps.