This was taken from the following url: http://forums.msdn.microsoft.com/en-US/sharepointcustomization/thread/8ddb9f2e-12ca-4285-9bd1-1a29e0d5efc4/
Using a SharePoint Data View Drop down list This is the following syntax used to connect to an SPDatasource
< runat="server" id="dvddl{$Pos}" fieldname="HRRecruitRequisition" datasourceid="Requisitions2" datatextfield="Title" datavaluefield="ID" bind="{ddwrt:DataBind('i',concat('dvddl', $Pos), 'SelectedValue', 'SelectedIndexChanged', 'ID', ddwrt:EscapeDelims(string(@ID)), '@HRRecruitRequisition')}" appenddatabounditems="True" width="250px">
The meat and potatoes of this is in the __designer:Bind and FieldName attiributes. Obviously the DataSourceID needs to match the ID of the SPDataSource you are looking o display in the dropdown.

Comments