Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select from dropdownlist

Status
Not open for further replies.

Dewi

Programmer
Jul 15, 2000
2
0
0
GB
okay ppl.i hav this database which is about patients.i want to select a DoctorINCharge from dropdownlist to display only selected data of patients under that doctor and display into datgrid.how do i do that???thanks
 
1. Set your ddl's autopostback property to True
2. On the ddl's SelectedIndexChanged event, have code that will do a lookup based on the doctor's ID (assuming you have it set up so that the doctor's have an ID, and its a foreign key to the patient's table) and fill the datagrid.

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top