comboBox1.DataSource = (new List<Section>() { new Section() { SectionName="[Seçiniz]", Id = -1 } }).AddRange(repository.GetAllSection());gibi bir yol kullanabilirsiniz. Section entity'sinin propertylerine bağlı olarak kodu düzeltmeniz gerekebilir.
e-mail: onay[nokta]yalciner[at]hotmail[nokta]com
Image may be NSFW.
Clik here to view.Image may be NSFW.
Clik here to view.