none
DataRelationPropertyDescriptor RRS feed

  • Question

  • I have to table Table1 and Table2 in DataSet.

    Table1 is parent for Table2.

    I have bindingsource object which: DataSource = DataSet

    and DataMember = Table1.

     

    And now.

    foreach (PropertyDescriptor pd in GetItemProperties(null))

    {

          if (pd.PropertyType == typeof(System.ComponentModel.IBindingList))

          {

                 //Todo

          }

    }

     

    If statment execute once. pd.Name is Table1_DataTable2 which is name of relation from dataset.

    But I need have name of child Table, for this example is Table2. How can I get this name.

    Can somebody help me.

     

    Monday, July 16, 2007 8:47 PM