5 pts.
 C# – ComboBox with ADO.NET
A combobox is provided in the form and i wan to display a particular column from athe table in the database(sql). and when i select this particular data corresponding rows should be displayed in the textboxes provide. How should I write the code in C#.

Software/Hardware used:
ASKED: February 24, 2009  1:47 AM
UPDATED: February 25, 2009  8:26 PM

Answer Wiki:
In general terms, you will need to stablish the database connection, populate the combo box (or dropdown list) and retrieve the corresponding rows from the database in the "selection changed" event of the combo. For a guide on how to stablish the database connection, have a look at <a href="http://www.codeproject.com/KB/database/sql_in_csharp.aspx">this page</a> And for an example on how to manage the ComboBox events, have a look at <a href="http://www.java2s.com/Tutorial/CSharp/0460__GUI-Windows-Forms/ComboBoxselectionchangedevent.htm">this one</a>. --------------------------
Last Wiki Answer Submitted:  February 24, 2009  2:13 pm  by  carlosdl   63,535 pts.
All Answer Wiki Contributors:  carlosdl   63,535 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _