how to bind XML data in property grid
Printable View
how to bind XML data in property grid
The property grid displays the property values of an object. There is no 1:1 correspondence between XML data and a PropertyGrid. You'd have to read the XML data and assign the values to the properties of an object that you could then bind to the grid.
You could, for example, read the XML data into a datatable and bind that to your grid.
That wouldn't work. With a DataGridView or the like, yes, but a PropertyGrid would display the properties of the DataTable object like TableName, etc. It would not display the data in the table.Quote:
Originally Posted by MaximilianMayrhofer