Parent table and child table in DataGrid

xiaoxiao2021-03-06  55

Add two tables in a DataSet: dataset.tables.add (dt1); dataset.tables.add (dt2); dataset.reletions.columns ["primary key", DT2.columns ["Foreign Commitment"]); After making this Dataset as the data source of DataGrid, there will be display of the parent table and subtaby in the DataGrid.

转载请注明原文地址:https://www.9cbs.com/read-87535.html

New Post(0)