G
Guest
The GridView will pass the LessorID as a parameter (in the NewValues
collection) if you create a 2-way databind on the dropdownlist:
<aspropDownList ID="ddlCompany" runat="server"
DataSourceID="sdsLessors" DataTextField="Company" DataValueField="LessorId"
SelectedValue='<%# Bind("LessorID") %>'>
</aspropDownList>
In addition, for good programming style, you should define an
<UpdateParameters> collection within the markup of the SqlDatasource that
updates the GridView.
collection) if you create a 2-way databind on the dropdownlist:
<aspropDownList ID="ddlCompany" runat="server"
DataSourceID="sdsLessors" DataTextField="Company" DataValueField="LessorId"
SelectedValue='<%# Bind("LessorID") %>'>
</aspropDownList>
In addition, for good programming style, you should define an
<UpdateParameters> collection within the markup of the SqlDatasource that
updates the GridView.