1
如何在Eto中創建數字列(理想情況下爲整數)形成GridView?數字Eto Grid單元格?
下面是我的兩個字符串列
stats.Columns.Add(new GridColumn
{
DataCell = new TextBoxCell { Binding = Binding.Property<RulesDocAdapter, string>(r => r.Name) },
HeaderText = "Name"
});
stats.Columns.Add(new GridColumn
{
DataCell = new TextBoxCell { Binding = Binding.Property<RulesDocAdapter, string>(r => r.Abbreviation) },
HeaderText = "Abbreviation"
});
謝謝!該代碼是一種模糊,所以我有麻煩工作,這個魔術out1 –
這適用於顯示,但更新失敗。我認爲它有一個轉換異常,這會讓人窒息。 如果我想int屬性是可編輯的,我需要做什麼? –
當前代碼: 'stats.Columns.Add(新的GridColumn { DATACELL =新TextBoxCell {結合= Binding.Property((RulesDocAdapter R)=> r.Cost).Convert(V => v.ToString( ))}, HeaderText =「Cost」, Editable = true }); ' –