- Online Barcode Generator
- How To
- Buy Now
KetticTreeView Data Binding to XML data
When using the KetticTreeView control, the developers are able to bind this control to XML data source in Windows Forms application. KetticTreeView control for WinForms provides two options available for the interface designers to accomplish the XML data binding. One is to directly load the XML data to the KetticTreeView in Windows Forms, the other is to load the XML data to a DataSet for KetticTreeView data binding.
Load XML for KetticTreeView Data Binding
The following example demonstrates a typical xml data table which contains a Title element, ID, and ParentID. We can directly load the xml data for data binding of KetticTreeView in C# Windows Forms application.
Load XML to DataSet for KetticTreeView Data Binding
To bind the KetticTreeView to xml via the DataSet, we shall place the above xml file under the KetticTreeView\DataBinding directory, and then run the C# code below from the Load event handler. A DataSet object will be created and the DataSet.ReadXml() method will consumes the data in the xml file.
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls