.NET Framework Bookmark and Share   
 index > Windows Presentation Foundation (WPF) > WindowsFormsIntegration problem with DataGridView
 

WindowsFormsIntegration problem with DataGridView

I am using WindowsFormsIntegration in a WPF project in C# to add a DataGridView and I am having some problems with it simply being drawn in the window.

I am using Microsoft Expression Blend 2 for the interface and I noticed it generated a Resource Dictionary. Removing some of the styling in there actually solved part of the problem but I keep getting the same problem.

Here are the actions needed to be done in order to get to the DataGridView: inside a TabItem of a TabControl there is a certain GroupBox which contains RadioButtons, once a certain RadioButton is pressed another GroupBox becomes visible and it contains theWindowsFormsIntegration host which itself contains the DataGridView but the WindowsFormsIntegration does not appear (it is not drawn when it should be). It only appears when I take the mouse and put it over a certain control such as a Button inside the GroupBox, put it over a Tab or even put the mouse over a RadioButton... I did not code any events for this to happen. Is Expression Blend responsible for my problems?

I am aware of the solution with the double buffered DataGridViewbut how can you use this in XAML for WPF or in C# for WPF? Does it make sense to try to use the double buffered DataGridView?

An example of the doublebuffered datagridview in WPF with WindowsFormsIntegration or any alternative solution would really be appreciated!!

Thank you for any help provided!

PartialAlert
Why not use the WPF DataGrid in the WPF Toolkit instead?
http://www.codeplex.com/wpf
Tergiver
Why not use the WPF DataGrid in the WPF Toolkit instead?
http://www.codeplex.com/wpf
Tergiver

You can use google to search for other answers

Custom Search

More Threads

• drag and drop listview items
• ListView and Stretch Content of one cell
• Binding using ElementName in a DataTemplate
• Is there anyway to control the animation in code-behind?
• WPF FlipBook Orientation Issue
• INotifyPropertyChanged and auto DP subscribtion to event
• Integer validation for wpf
• Exception in Converter kills Binding
• ModelUIElement3D with Image Brush material can be seen through
• Problem Listviews containing textboxes and Item selection