Adapting Columns to Data

Templates are good at implementing special formatting features for columns, so you should take full advantage of their flexibility to adapt column layouts so that they really reflect the nature of your data. In most cases, plain text is good enough when you want to represent information from the data source. But in certain situations, you’ll want to use a custom template composed of controls whose structure is more closely aligned with the intent of your data. Want some examples of these controls? Consider Booleans, images, and arrays.

Showing Boolean Values

A Boolean field can take two possible values: true or false. In spite of its simplicity, or maybe because of it, a Boolean value does not have a unique graphical ...

Get Building Web Solutions with ASP.NET and ADO.NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.