Wrapping Text in a DataGridView

I thought that wrapping text in a datagridview would be a problem, but it turned out to be really simple.  All you have to do is to change a setting in the DefaultCellStyle.  This property represents a style of the cell, and has a WrapMode object, which by setting to true, means that text within the cell will automatically wrap according to the width specified.  Pretty easy.

Published Thursday, July 05, 2007 3:08 PM by bmains
Filed under:

Comments

No Comments

The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.