Skip to Content
Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation
book

Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation

by Alessandro Del Sole
February 2013
Beginner to intermediate
68 pages
1h 50m
English
Sams
Content preview from Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation

Tips for Using the DataGrid Control

The DataGrid control was introduced in WPF 4. It’s a very popular control. Before it appeared in the .NET Framework, you had to create data grids manually by styling a ListView control or by using third-party controls. Following are some useful tips to help you make the most of the DataGrid control.

Writing Multiple-Line Text in DataGrid Cells

When you work with the DataGrid control, you typically will use DataGridTextColumn objects to display text. This object has a limitation: No property is available for displaying text on multiple lines automatically, according to the column size. The solution isn’t very complex. In fact, you can use a DataGridTemplateColumn object and implement a custom template. You use ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4

Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4

Matthew MacDonald
WPF in Action with Visual Studio 2008

WPF in Action with Visual Studio 2008

Arlen Feldman, Maxx Daymon

Publisher Resources

ISBN: 9780133432473