拨打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