I have a ListView set to details mode, which contains file paths. Is it possible to truncate the cells from the left hand side instead of the right?
For example:
If a cell contains a string (C:\Windows\Some directory\file.txt), then if the column is too small, the cell just reads C:\Windows\So...
I need it to truncate from the other side, so it reads ...ctory\file.txt. Is this possible?
Truncating ListView Cells
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Bechir BejaouiRank #144 · 15.9K pointsPosted Mar 24, 2008, 3:45 AM EDT
string x = @"C:\Windows\So" + Environment.NewLine + @"ctory\file.txt";
MessageBox.Show(x);
Bill12 pointsPosted Mar 24, 2008, 4:27 AM EDT