/// <summary> /// Only applies to FK columns. Populate the list control with all the values from the parent table /// </summary> /// <param name="listControl">The control to be populated</param> protected void PopulateListControl(ListControl listControl) { Type enumType; if (Column is MetaForeignKeyColumn) { Misc.FillListItemCollection(ForeignKeyColumn.ParentTable, listControl.Items); } else if (Column.IsEnumType(out enumType)) { Debug.Assert(enumType != null); FillEnumListControl(listControl, enumType); } }
public override void PopulateListControl(ListControl listControl) { Misc.FillListItemCollection(FilterTable, listControl.Items); }