撥打SetDataBinding(object DataSource, string DataMember, bool hideNewColumns)時,Key preoperty如何在UltraGrid上設置?我怎樣才能將它設置爲List'1
?如何爲UltraGridBand設置密鑰?
我有以下形式和類別:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.ultraGrid2.SetDataBinding(new List<row>(), string.Empty, true);
this.ultraGrid2.DisplayLayout.ColumnChooserEnabled = DefaultableBoolean.True;
// breakpoint on the above line and run the below immediate window code
}
}
public class row
{
public string Name { get; set; }
public string Address { get; set; }
}
設置數據結合後,下面的代碼總是給我List'1
在即時窗口:
this.ultraGrid2.DisplayLayout.Bands[0].Key
爲什麼我認爲這是一個音樂的問題嗎? – 2013-03-06 20:39:53