DropDownList Kullanımı
List<Section> deneme = new List<Section>() { new Section() { SectionName = "Şube Seçiniz", ID = 0 } }; deneme.AddRange(repository.GetAllSection());...
View ArticleDropDownList Kullanımı
copy paste yapmayın, Id yerine ID olabilir. Ayrıca ToList de eklemeniz gerekebilir;comboBox1.DataSource = (new List<Section>() { new Section() { SectionName="[Seçiniz]", ID = -1 }...
View ArticleDropDownList Kullanımı
bu şekilde bir hata veriyor. Id yi buyuk yazınca kod komple hatalı oluyor
View ArticleDropDownList Kullanımı
comboBox1.DataSource = (new List<Section>() { new Section() { SectionName="[Seçiniz]", Id = -1 } }).AddRange(repository.GetAllSection()); gibi bir yol kullanabilirsiniz. Section entity'sinin...
View ArticleDropDownList Kullanımı
Merhabalar Projemde DropDownList kullanıyorum ve verileri SQL den alıyoruz. Form yüklendiğinde DDL de ilk veri çıkıyor ben bunu istemiyorum ilk olarak "Seçiniz..." yazsın istiyorum bunu nasıl...
View Article