Creating Hierarchy Using an XML Data Source
RELATED VIDEOS | |
---|---|
RadGridView for WinForms Hierarchy Overview In this video you will learn the various ways you can display hierarchical data in a RadGridView. (Runtime: 12:13) |
![]() |
Please refer to this topic before proceeding to this article.
RadGridView does not support many-to-many relations. Xml files seldom contain such relations but created DataTables may appear to contain ones.
This xml file is used in the examples below:
The DataSet
created by ReadXml method for the given xml above contains 3 tables which you can avoid easily by skipping the second table and using the first and the third ones only. Note also that Invoice_Id and Parts_Id columns were added automatically to the tables by the ReadXml method: