May 31, 2011, 1:55 AM
Finish master-detail
Good evening,
I am finishing up master-detail grids and need help , one more time
1 - The code below is taken from where we were used LinqDataSource. I need to convert for use with SqlDataSource because I'm not getting to filter child records correctly.
2 - How do I get when inserting a new record, the detail grid receives the primary key of the master grid?
Thanks
I am finishing up master-detail grids and need help , one more time
1 - The code below is taken from where we were used LinqDataSource. I need to convert for use with SqlDataSource because I'm not getting to filter child records correctly.
<script runat="server">
protected void Store2_Refresh(object sender, StoreRefreshDataEventArgs e)
{
string id = e.Parameters["SupplierID"];
this.LinqDataSource2.WhereParameters["SupplierID"].DefaultValue = id ?? "-1";
this.Store2.DataBind();
}
</script>
2 - How do I get when inserting a new record, the detail grid receives the primary key of the master grid?
Thanks