I have a Hierarchical grid with GridTemplateColumn containing a RadComboBox whose datasource is set to the source below. I need to be able to pass parameters to the Selecting StoredProcedure. The parameters will change each row. I would like them to come from the datacontainer or datakeynames, both of which contain the values. How do I configure the SelectParameters to achieve this?
<asp:SqlDataSource ID="sqlProduct" runat="server" ConnectionString="<%$ ConnectionStrings:XRMConnectionString %>"
SelectCommand="spDailyBalancing_ProductVolume_Select" SelectCommandType="StoredProcedure" OnSelecting="sqlProduct_Selecting">
<SelectParameters>
<asp:ControlParameter Name="UtilityId" ControlID="cboUtility" DefaultValue="0" PropertyName="SelectedValue" />
<asp:ControlParameter ControlID="grdList" PropertyName="DataItemContainer" Name="ReceiptPointId"></asp:ControlParameter>
<asp:ControlParameter ControlID="grdList" PropertyName="DataItemContainer" Name="BaseloadDate"></asp:ControlParameter>
</SelectParameters>
</asp:SqlDataSource>