2015-09-02 42 views
1

如何調整或繼承DataGridViewTextBoxColumn因此字符串的結尾是可見的?當前的行爲是即使右對齊(如果字符串太長),字符串的左邊部分也是可見的。DataGridViewTextBoxColumn中的長字符串 - 顯示它們的結尾,而不是開始

有一個樣本文件路徑:

D:\Data\Visual Studio 2015\Projects\WindowsApplication1\filename.txt 

DataGridViewTextBoxColumn它看起來像

+----------------------------------+ 
|DataGridViewTextBoxColumn1  | 
+----------------------------------+ 
|D:\Data\Visual Studio 2015\Project| <-- left-aligned long value - OK 
|D:\Data\Visual Studio 2015\Project| <-- right-aligned long value - CURRENT BEHAVIOR 
|s\WindowsApplication1\filename.txt| <-- I NEED RIGHT ALIGNMENT LIKE THIS 
+----------------------------------+ 

→ View the above as graphics.

(C#或VB - whatev呃你喜歡)

回答

相關問題