I have a row that populates from a datagrid Xceed, as such:
study = row.Cells["STUDY_NAME"].Value.ToString().TrimEnd (Environment.NewLine.ToCharArray());
However, when I pass the research line to another part of the program, it gives an error, because the line is still displayed as: "PI3K1003 \ n"
I also tried:
TrimEnd('\r', '\n');
Does anyone have any ideas?
Thanks.
source share