I have a string with emojis and new lines in it. I am using Regex to remove the emoji.
string text = "S H A V A . Est 2015\nBandung\nLine: @ubm5921j\nBbm: 7D2E6310\nFAST ORDER\ud83d\udc47\ud83c\udffe\ud83d\udc47\ud83c\udffe";
string result = Regex.Replace(text, @"\p{Cs}", "");
That works fine until I want to add the string in my dataGridView, using this line:
dataGridView1.Rows.Add("TestData", "TestData", "TestData", result);
For some reason, it skips the '\n' in the result string and outputs the whole string in one line. How can I add the string with new lines in the dataGrid?