.NET Compact Framework Can you get meshes with multi-line text in cells?

Is it possible to display multiple lines of text in grid cells using the .NET Compact platform? We need to create a grid in which the middle column contains the address. We would like to show this on several lines and (possibly) apply some formatting to the last line.

eg.
123 Anywhere Street
Birmingham
B1 2DU
tel: 0123 555555

+3
source share
3 answers

Take a look at Ilya Tumanov's example of custom formatting data in a DataGrid . It does the usual staining of cells in it.

+1

"OnPaint" ( , SourceGrid , CF).

.NET Framework : (.

+1

Set the AutoSizeRowsMode property in the DataGridView control for DisplayedCells.

Additional information: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.autosizerowsmode.aspx

-4
source

Source: https://habr.com/ru/post/1697439/


All Articles