Example #1
0
 public static void InitDropDown(GDropDown control, string type, ISearch searchLogic, string vfield, string tfield)
 {
     control.ValueField = vfield;
     control.TextField  = tfield;
     control.Logic      = searchLogic;
     foreach (ColumnInfo c in GetListColumns(type))
     {
         control.AddGridColumn(c.ColumnName, c.ColumnCaption, c.ColumnType, c.ColumnWidth);
     }
     control.GridEndInit();
 }
Example #2
0
 public static void InitDropDown(GDropDown control, string type, ISearch searchLogic, bool isdefault)
 {
     control.Logic = searchLogic;
     if (isdefault)
     {
         DefaultField(control, type);
     }
     foreach (ColumnInfo c in GetListColumns(type))
     {
         control.AddGridColumn(c.ColumnName, c.ColumnCaption, c.ColumnType, c.ColumnWidth);
     }
     control.GridEndInit();
 }