public void DataBind(DataSet lDataSet) { this.DataContext = lDataSet.Tables["i9LawIncident"]; MainIncidentDynControl.DataBind(lDataSet.Tables["i9LawIncident"].DefaultView, "Incident.General", "i9LawIncident"); DataView IncidentLocationDV = new DataView(lDataSet.Tables["i9Location"]); IncidentLocationDV.RowFilter = "i9ModuleSectionID = '" + i9ModuleSection.LawIncidentLocation.ToString() + "'"; MainLocationDynControl.DataBind(IncidentLocationDV, "Location", "i9Location"); //IncidentLocation.DataBind(lDataSet); IncidentCADServiceCall.DataBind(lDataSet); LoadSupplements(); LoadSolvabilityFactors(); }
public void DataBind(DataSet lDataSet) { mDataSet = lDataSet; //if (Locationi9PersonID == Guid.Empty) //{ // //Filer on i9ModuleSectionID // dv = new DataView(lDataSet.Tables["i9Location"]); // //dv.RowFilter = "i9ModuleSectionID = '" + i9ModuleSection.LawIncidentPersonLocation.ToString() + "'"; //} //else //{ //Filer on i9ModuleSectionID and i9personID dv = new DataView(lDataSet.Tables["i9Location"]); dv.RowFilter = "i9ModuleSectionID = '" + i9ModuleSection.LawIncidentPersonLocation.ToString() + "' AND i9PersonID = '" + Locationi9PersonID + "'"; //} this.DataContext = dv; MainLocationDynControl.DataBind(dv, "Location", "i9Location"); }