Hi,
In your SQL query itself you do some changes .
please check the below query
SELECT name,dept,name+' - ' +dept AS DETAILS FROM TABLE_NAME
AFTER write this query then bind the table like this.
dropdownbox.DataSource = ds
dropdownbox.DataValueField = "name"
dropdownbox.DataTextField = "DETAILS"
dropdownbox.DataBind()