0
我在我的wpf mvvm應用程序中有DataGrid
。我將數據表綁定爲來自我的視圖模型的數據源。請給我一個方法來將DataGrid
列標題文本與底層tada表格列「Caption」綁定。 (不是默認的列名稱)。我自動創建Datagrid
列(AuotGeneratedColumns = true
)WPF grid wive列標題樣式
我在我的wpf mvvm應用程序中有DataGrid
。我將數據表綁定爲來自我的視圖模型的數據源。請給我一個方法來將DataGrid
列標題文本與底層tada表格列「Caption」綁定。 (不是默認的列名稱)。我自動創建Datagrid
列(AuotGeneratedColumns = true
)WPF grid wive列標題樣式
這裏類似的解決方案... HTTP://stackoverflow.com/questions/6928393/all-datagrid-headers-must-have-unique-names-how-to-work- around-it/6929089#comment-8293037
讓我知道這是否引導你在某個方向?
每列只有一個列標題,但可以有多行。您希望將哪些行綁定到標頭?或者你是否希望用ColumnName - Caption映射將它們綁定到另一個DataTable? –