protected override void InitLayout() { base.InitLayout(); if (!this.DesignMode && this.FillAtStartup) { this.Fill(); if (this.AddEmptyValue) { DataView view = ComboHelper.GetComboValues(this.DataSet, "RADNIK", "IDRADNIK", "SPOJENOPREZIME", true, "<" + Deklarit.Resources.Resources.Empty + ">"); this.DataSource = null; this.DisplayMember = "Name"; this.ValueMember = "Id"; this.DataSource = view; } } }
protected override void InitLayout() { base.InitLayout(); if (!this.DesignMode && this.FillAtStartup) { this.Fill(); if (this.AddEmptyValue) { DataView view = ComboHelper.GetComboValues(this.DataSet, "PLVRSTEIZNOSA", "IDPLVRSTEIZNOSA", "NAZIVPLVRSTEIZNOSA", true, "<" + Deklarit.Resources.Resources.Empty + ">"); this.DataSource = null; view.Sort = "Name"; this.DisplayMember = "Name"; this.ValueMember = "Id"; this.DataSource = view; } } }