Now we will format columns to highlight important information in our grid.
Formatting columns
- Close the application.
- Under C1FlexGridRow (on the left), select the Product Name element. In the Properties area, click on Appearance and select the Bold check box.
- Now select the Quantity Per Unit element. Click the drop-down button and select FlexGrid Link Column. In the Properties area, click on Sizing. Under Width, choose the Auto radio button.
- Now select the Unit Price element. In the Properties area, click on Appearance and click the Format String drop-down. Choose Currency. Under Advanced, set the High Value to 30 and the High Value Background Color to Yellow.
- Select the Units in Stock element. In the Advanced area, set the Low Value to 1 and the Low Value Background Color to Light Red.
- Select the Units on Order element. In the Advanced area, set the High Value to 0 and the High Value Background Color to Light Green.
Now the out of stock items are red, items on order are green, and the most expensive items are yellow. Clicking a Quantity Per Unit link will open a new tab for editing the data row for that product.