string title = mydatalist.datakeys[mydatalist.selecteditem.itemindex].tostring(); sqldataadapter mycommand = new sqldataadapter("select * from titles where title_id = '" + title + "'" , myconnection);
dataset ds = new dataset(); mycommand.fill(ds, "titledetails");