cell2.Value = "Sample Text , Sample Text \r\n \r\n \r\n Some more text \r\n Custom text";
Would generate a text in a cell with new lines. Also keep in mind that the WrapText property needs to be set to true:
cell2.CellFormat.WrapText = ExcelDefaultableBoolean.True;
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
FYI, due to a fix for issue 103739 in the latest SR of versions 11.1 and later, the cell's WrapText value will be automatically set to True when it is Default and text with newlines is set on the cell. This is mimic how MS Excel automatically turns on wrap text for a cell when Alt+Enter is used to add newlines in that cell.