# Combo Box - specific line with different style?

**URL:** https://forum.kirupa.com/t/combo-box-specific-line-with-different-style/240673
**Category:** flash
**Created:** [October 4, 2007, 10:17pm UTC](https://forum.kirupa.com/t/combo-box-specific-line-with-different-style/240673 "2007-10-04T22:17:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iphotostuff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/iphotostuff/32/2368_2.png) [@iphotostuff](https://forum.kirupa.com/u/iphotostuff)
#### Post date: [October 4, 2007, 10:17pm UTC](https://forum.kirupa.com/t/combo-box-specific-line-with-different-style/240673/1 "2007-10-04T22:17:21Z")

</div>

The continued joys of the combo box.

Is it possible to have different lines in the same comboBox have different styles?

I have a cb being built via XML. The parent nodes represents a category header and the child nodes represent line items that relate to that header. I want the headers to be bold and the children to be regular.

Currently I have a style set for the box:

```auto

// create dropdown style
import mx.styles.CSSStyleDeclaration;
var new_style:Object = new CSSStyleDeclaration();
_global.styles.myStandard = new_style; 
new_style.setStyle("color", 0x4C4C4C); 
new_style.setStyle("embedFonts", true); 
new_style.setStyle("fontFamily", "Verdana"); 
new_style.setStyle("openDuration", 100); 
new_style.setStyle("fontSize", 11);
new_style.setStyle("rollOverColor", 0xe5f3fe);
new_style.setStyle("borderStyle", "solid");

cb.setStyle("styleName", "myStandard");
cb.setSize(150, 22);
cb.dropdownWidth = 150;
cb.rowCount=12;

```

And bright ideas on how I might make the category headers bold while keeping everything else regular?

Cheers!
