Select to view content in your preferred language

Can I use a DataGridView in a PRO SDK dockpane?

981
2
08-18-2020 11:04 AM
MattDeitemeyer
Occasional Contributor

I'm trying to recreate an old ArcObjects add-in that used the deprecated FlexGrid control. The PRO SDK ESRI example used a DataGrid to achieve a similar experience. While doing some research I noticed that the DataGridView was presented as a newer/better solution to the DataGrid. However, it seems that the DataGridView is a Windows Forms control and not available for inclusion into a dockpane like the DataGrid WPF control. I was hopeful someone could confirm / reject this conclusion. 

0 Kudos
2 Replies
GKmieliauskas
Esri Regular Contributor

Hi Matt,

How to use windows forms controls in wpf application you can find here:

https://www.wpf-tutorial.com/misc-controls/the-windowsformshost-control/.

But you need to read Summary part of that web page.

MattDeitemeyer
Occasional Contributor

I'll give it a shot!

0 Kudos