protected void GetProductSupplierMapping() { Accomodation_ID = new Guid(Request.QueryString["Hotel_Id"]); grdExistingMaps.DataSource = AccSvc.GetAccomodation_ProductMapping(Accomodation_ID, 0, 10); grdExistingMaps.DataBind(); }
protected void grdProductSearch_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Map") { // two actions required // #1 bind the existing maps grid as we will be adding data to that grid int index = Convert.ToInt32(e.CommandArgument); Guid myRow_Id = Guid.Parse(grdProductSearch.DataKeys[index].Value.ToString()); if (myRow_Id != null && myRow_Id != Guid.Empty) { //Accomodation_ID = myRow_Id; fillmappeddata(myRow_Id, grdProductSearch.PageIndex); } //grdAccoMaps.DataSource = AccSvc.GetAccomodation_ProductMapping(myRow_Id, 0, 10); //grdAccoMaps.DataBind(); //#2 set the starting search for existing maps - there's an issue on the servie at the moment so this is stub data just to populate the UI grdSupplierDump.DataSource = AccSvc.GetAccomodation_ProductMapping(Guid.Empty, 0, 5); grdSupplierDump.DataBind(); } }