The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I'm using Essential Studio Enterprise 2010 vol 2. I adapted the sample code from one of the grouping demos to work in my project. I got one parentTable and one childTable and tried to join. Unfortunately with no success. In single step debugging I checked that both datasource containing data and also RelationKeys do matching. All I get is the correct row from the parent table, a "+" in front of the row, but no childdata.
Can you help me? Thanks a lot and sorry for my bad english. Jan
patienttreatment and patientdialyzer are classes with public string fields containing my data:
public class patientdialyzer { private string _fkPatientTreatment;
public string fkPatientTreatment { get { return _fkPatientTreatment; } set { _fkPatientTreatment = value; } } ...
public class patienttreatment { private string _idPatientTreatment;
public string idPatientTreatment { get { return _idPatientTreatment; } set { _idPatientTreatment = value; } } ...
private void LoadTreatment(string id) { patienttreatment[] parentTable = db.GetPatientTreatment("fkPatientMasterdata = " + id); patientdialyzer[] childTable = db.GetPatientDialyzer("fkPatientMasterdata = " + id); // I checked that parentTable and childTable are containing valid data. this.gridGroupingControl1.Engine.SourceListSet.Add("Treatments", parentTable); this.gridGroupingControl1.Engine.SourceListSet.Add("Dialyzer", childTable);
GridRelationDescriptor parentToChildRelationDescriptor = new GridRelationDescriptor(); parentToChildRelationDescriptor.ChildTableName = "Dialyzer"; // should be same as SourceListSetEntry.Name. parentToChildRelationDescriptor.RelationKind = RelationKind.RelatedMasterDetails; parentToChildRelationDescriptor.RelationKeys.Add("idPatientTreatment", "fkPatientTreatment"); gridGroupingControl1.TableDescriptor.Relations.Add(parentToChildRelationDescriptor);