Combobox binding using LINQ
-
Hi , I am presently doing the following thing using sql server 2005. I have the populate the combo box with a table which has two fields id and name even if there exist no record in database for that table , it shall return me the clone of that table. and after retrieving the records and put into the datatable , i add one more row at first place (---Select---) in the datatable , and finally bind it with the combo box control. I want to do the samething in LINQ , I am able to populate it with combo box using Linq , but i am facing two problems (a) If there exist no record , in this case how should i place the (---Select---) row at first place , this is the mandatory record. (b) If there exist records , even then i am unable to attach the (---Select--) row in the combo box at first place. Regards