C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

SQL Query


Posted Date: 03 Nov 2009      Posted By: Shabbir      Member Level: Silver     Points: 1   Responses: 2



I have two comboboxes on my form. Now i want when i leave from one combobox to another equivalent value of combobox1 should be displayed in combox2. I have written following code but its not working. Plz help..

da1 = New OleDb.OleDbDataAdapter("SELECT Item_Description FROM Inventory WHERE Item_Code= '" & cboxItemCode.Text & "'", con)

da1.Fill(ds1)
cboxDescription.Text = ds1.Tables(0).Rows(0)(1)





Responses

Author: rajanigrandhi    03 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

instead of cboxDescription.Text = ds1.Tables(0).Rows(0)(1)
write like
cboxDescription.items.add(ds1.Tables(0).Rows(0)(1).toString())



Author: Shabbir    04 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Sorry it doesnt solved my prob. Plz provide me some other soloution


Post Reply
You must Sign In to post a response.
Next : Display .xls file contents in a textbox using vb.net
Previous : View Image in Crystal Report
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use