Saber Shaikh

Saber Shaikh

  • 757
  • 1.2k
  • 135.4k

How to set Combobox is Slect Option And then Bind Data

Dec 19 2014 12:41 AM


LINQ


var query = (from p in db.Tbl
                            select new
                            {
                                p.PartNo
                            }).ToList();
               
               // Combobox1.Items.Insert(1, "Select Part No");
               Combobox1.DataSource = query;
               Combobox1.DisplayMember = "tblPartMaster_PartNo";
               Combobox1.ValueMember = "tblPartMaster_PartNo";




How to set Combobox is Slect Option And then Bind Data in Combobox



My Blog: http://aspnettutorialscode.blogspot.in/


Thank You 





Answers (4)