|
-
May 17th, 2008, 12:04 AM
#1
Thread Starter
New Member
C# (windows app.)
how to bind XML data in property grid
-
May 17th, 2008, 02:15 AM
#2
Re: C# (windows app.)
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.
-
May 17th, 2008, 10:46 PM
#3
Re: C# (windows app.)
You could, for example, read the XML data into a datatable and bind that to your grid.
-
May 17th, 2008, 11:47 PM
#4
Re: C# (windows app.)
 Originally Posted by MaximilianMayrhofer
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|