The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I've seen reference in this forum (see link below) to multiline textbox columns, but can't work out how to set the cells in a GridBoundColumn to recognise '\n' line breaks as contained in my dataset table columns.
Eg. http://www.syncfusion.com/forums/message.asp?MessageID=5457
Thanks,
Peter
ADAdministrator Syncfusion Team July 14, 2003 06:24 AM UTC
I don't know that you have to do anything. Attached is a little sample that puts \n in strings a datatable, and they are recognized by the grid without further work. What is different in your situation?
PSPeter SchonefeldJuly 14, 2003 09:27 PM UTC
Thanks for the tip Clay. My escape code is in the SQL statement like:
"SELECT field1 + '\n' + field2"
which seems to populate the dataset as a literal string that makes my grid cell look like, "value1\nvalue2"...the following sets things right:
foreach(DataRow i in dataSet1.Tables[0].Rows){
string s = (string) i["Name"];
i["Name"] = s.Replace("\\n","\n");
}
Regards
Peter