private static void BoundDatabase(RepositoryItemGridLookUpEditBase lue, DataTable dt, bool displayCombination, bool AddNull, string DisplayFileName, string ValueFileName) { if (AddNull) { dt = Common.ADDNULL(dt); } if (displayCombination) { Common.AddColumns(dt, new string[] { ValueFileName, DisplayFileName }); DisplayFileName = Common.DefNewColName; } lue.DataSource = dt; lue.ValueMember = ValueFileName; lue.DisplayMember = DisplayFileName; }