4
Answers

How to set Combobox is Slect Option And then Bind Data

Saber Shaikh

Saber Shaikh

9y
619
1


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)