How to load data using datatable in PropertyGrid?

Grids for WPF Forum

Posted 13 years ago by Shanmuga Priya
Avatar
Hi,

I am having a Datatable with three columns namely key,value,category. I want to use these data in my propertygrid. How to do that? I put

propertygrid.selectedobject=mydatatable;

but it doesn't work.

Please help me in this regard.

thanks in advance,

Priya

[Modified at 11/15/2010 02:16 AM]

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Priya,

You would have to create a custom DataFactory to convert your DataTable to a list of data accessors. The Custom Factory (Dictionary) QuickStart shows an example of how this can be done.

The code you have above would show the properties of the DataTable, not it's contents/rows.


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.