我有这些课程
public class MyUserControl : UserControl
{
public ColumnInfo[] ColumnInfos { get; set; }
public TableInfo[] TableInfos { get; set; }
}
public class ColumnInfo
{
public string Name { get; set; }
public string Caption { get; set; }
public string Table { get; set; }
}
public class TableInfo
{
public string Name { get; set; }
public string Alias { get; set; }
public override string ToString()
{
return string.IsNullOrEmpty(Alias) ? Name : Alias;
}
}
如何在ColumnInfo []中显示dropDown。设计模式中包含TableInfos的表?