Is there a DataGrid component that behaves the same in WPF and Silverlight? There are some small differences in DataGrids from MS (WPF and Silverlight Toolkits). For example, while WPF version has CanUserAddRows property, Silverlight version does not.
I gave up - there nothing like that so I have to care about differences in the code by myself.
Edit: Most of the differences can be handled by styles - simply create one DataGrid style for WPF and one for Silverlight.
Related
How do I enable DataGridView?
Currently it is greyed out in the toolbox, see this screenshot.
DataGridView is a Windows Forms control, as your screenshot shows. Putting WinForms in WPF is usually avoided where possible as they are different technologies - you should aim to use a WPF equivalent.
If you really want to use it, you can use a WindowsFormsHost - there are lots of guides out there to explain how.
In fact, DataGrid is the WPF equivalent of DataGridView, e.g. WPF DataGrid Vs Windows Forms DataGridView. I'd use DataGrid if I were using WPF.
I would like to use both Telerik WPF UI Controls and WPF own controls in the same project. I think WPF is quite good and I need only a few controls and themes from Telerik. However, when I mix them, not all WPF controls benefit from the themes of Telerik. I read that, Telerik only support a few of WPF controls like TextBox and etc. However, I could not find a way to achieve a WPF Window with a looking like RadWindow. I have been searching and found some answers about this topic, but I think they are a little bit disorganized.
In brief, I would like to use styles from Telerik for also other WPF Controls (non-Telerik ones), but I am not sure whether it is possible or not? When I use WPF Window and RADProgressBar together, of course it does not look very good. If mixing is not a good idea I am considering completely switching to WPF. I do not have much experience with Telerik and I do not want to struggle in a mess due to this mixed environment. I want to use both if it is possible to achieve a unified style for both controls (Telerik and non-Telerik).
Take a look at MahApps Metro (http://mahapps.com/), a WPF control toolkit that has styles to give your application a metro feel, as that is what a lot of the Telerik UI kit does as far as I can tell.
ok, I'm totally confused. I'm new to WPF (don't know how many times I read this sentence in the last week) and I'm investigating in DataGrids for my project.
The DataGrid in WPF 4.0 does not provide too many features. Can anybody tell me if that grid is the same as in the WPF Toolkit?
Did the code from that project became part of .NET4.0?
If not, is there anywhere documentation on the WPF Toolkit DataGrid?
thank you
As far as I know DataGrid started as external control in WPF Toolkit but then was included in standard control library in WPF 4 (see related topic). So if you`re using WPF 4 then you don`t need no external toolkits to use DataGrid, and all it`s documentation can be found on MSDN: DataGrid.
There is a topic about datagrids here. It`s old but still more or less actual.
Is there any site available where I can find free WPF controls like Griview ? I am currently working on a complex project where I need a customizable WPF Gridview like telerik
You can use controls from the WPF Toolkit as well as Extended WPF Toolkit.
Have a look at the controls in AvalonControlsLibrary on code plex, it is having a DataGridView control apart from other controls. -
http://avaloncontrolslib.codeplex.com/wikipage?title=Home&ProjectName=avaloncontrolslib
DataGridView
DataGridView is a maybe a misleading name for this control. This control is far from being the same as the WinForms DataGridView (maybe someday it will J). Basically this control is a WPF ListView control but it is capable of auto generate the GridViewColumns for you. It generates the columns by looking at the objects’ properties. You can also specify how you generate the columns by decorating your properties with a custom attribute. For more information have a look at this post. http://marlongrech.wordpress.com/2007/09/01/listview-with-auto-generation-of-column-enable-disable-columns/
Similar SF question - Where can I find free WPF controls and control templates?
On codeplex.com and codeproject.com. However the best always cost money.
I'm using WPF 4.0. I have a WPF Datagrid. One of my column in a datagrid is a template column. In that template column I have used Win forms Textbox and my problem is that,
How to bind that win forms texbox control in WPF?
How to access that control or column in Code behind (c#)?
You can't use WPF data binding with WinForms controls, WPF data binding requires dependency properties and FrameworkElement derived objects - both are part of WPF and not available in WinForms.
WinForms has it's own data binding system, it's completely incompatible with WPF's data binding (it's also weaker and unusable in some cases).
If you want to use WPF's databinding you have to use only WPF controls.
I suggest you either use the WPF TextBox or switch the entire grid to WinForms and use DataGridView.
by the way - I wouldn't put a WinForms control inside a WPF data grid (or any other items control) - I suspect this will give you a lot of trouble in the future.