Click here to Skip to main content
15,894,291 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,i need to add the items to combo box from excel file.In my form am having 1 combo box(for items) and 1 textbox (for price).i need to load items to both from excel file and the value of textbox should be selected according to value of combo box.

eg:
combobox    textbox
  Items      Price
  aaa         10
  bbb         12
  ccc         20

like this.help me....
Posted
Updated 21-Nov-13 0:49am
v2
Comments
ZurdoDev 21-Nov-13 7:47am    
Where are you stuck?

1 solution

Start here: How To Use ADO.NET to Retrieve and Modify Records in an Excel Workbook With Visual Basic .NET[^]
Although it's VB.NET, not C#, but there you'll find an idea how to achieve that.

C#: ADO.NET Code Examples[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900