I've set up to GridViews on my page - 1 receives a parameter from a previously clicked page the other receives a parameter from the first GridView when a row is selected. The second one does not work. I think the reason is I do not have a mechanism for firing the data source for the second GridView. I need the code that would go in the [GridView1_SelectedIndexChanged] routine. I have a parameter set up for the second GridView I think I just need a way to rebind the datasource:
Thanks
Code:
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:EMINConnectionString %>"
SelectCommand="SELECT SOPNUMBE, ITEMNMBR, UNITPRCE, QUANTITY, UNITPRCE * QUANTITY AS ExtPrice FROM SOP10200 WHERE (SOPNUMBE = @SOPNUMBE)">
<SelectParameters>
<asp:ControlParameter ControlID="GridView1" DefaultValue="" Name="SOPNUMBE" PropertyName="SelectedValue" />
</SelectParameters>
</asp:SqlDataSource>
Thanks