wpftoolkit

WPF Charting Toolkit: SelectedItems instead of SelectedItem?

I want to select many points/bars/columns etc in all types of charts that the WPF charting toolkit provides, something that the toolkit does not seem to support. I really would like to avoid writing my own DataPointSeries... Any ideas how to achieve that? ...

How to loop over the rows of a WPF toolkit Datagrid

Hello WPF experts: I have the next code where I defined a WPF toolkit datagrid control called dgQuery; I filled this one with information of a dataset, then I inserted a new checkbox column in dgQuery to check/uncheck some of the rows, I show part of my C# code: dgQuery.DataContext = dS.Tables[0]; DataGridTemplateColumn cbCol = new D...

DataGridTemplateColumn get value of cell

Using WPF Datagrid from WPF Toolkit. I added a templated column to my datagrid which has a checkbox in each cell. Now how do I access the value's within these cells? My other columns in the datagrid come from a dataset, I can access these, but I cannot get to the values of the DataGridTemplateColumn I added to the Datagrid Anyone has...

DataGridCell.IsEditMode?

How Can I know if the DataGridCell is currently in edit mode (not IsSelected), I mean, for example a DataGridTextColumn cell is clicked it becomes a TextBox and not a TextBlock, that's what I call IsEditMode. I wanna set a trigger-setter for this mode. EDIT: I tried to set a general style for DataGridCell.IsEditing but it doesn't seem t...

WPF DataGrid - Dynamic Row Details via Code

I have the need to show RowDetails in the WPF DataGrid when the user performs an action outside of the grid. The thing is though, I need to be able to switch out exactly what the RowDetails will be based on that. For example, if the click Add, I want to show RowDetails below Row of type AddRowDetailControl, and if they choose Edit, I wo...

Datagrid Row Update problem

I am using WPF toolkit Datagrid. I have a rowvalidationrule defined on this. to trigger this validation rule, on each cell update i have to hit enter button. but i want to check this on each cell update without hitting Enter button. How can i do this. this is a MVVM app. Thanks, Rey ...

Visual Studio Hangs in WPF Design View - ".NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A2E0F92) (0)"

I've encountered an issue where Visual Studio hangs in WPF design view. I've read through similar posts and I believe my issue is similar, but different. The errors I see in Windows Event Viewer are below. Hanging application devenv.exe, version 9.0.30729.1, hang module hungapp, version 0.0.0.0, hang address 0x00000000. .N...

WPF Datagrid with some read-only rows

I have the need to show some of my WPF Datagrid rows as read only or not depending on a property on my bound model. How can this be done? ...

How to bind WPF Datagrid itemssource to Collection of Collections ?

What is the best approach to bind a WPF DataGrid ItemsSource to an ObservableCollection of ObservableCollections ? e.g. public ObservableCollection<ObservableCollection<MyDataItem>> DataValues = new ObservableCollection<ObservableCollection<MyDataItem>>(); where MyDataItem may look like this: public class MyDataItem { public s...

How to show row index for wpf toolkit datagrid?

I just want to add a index column in wpf toolkit datagrid to show row index of each data in datagrid. How? <dg:DataGrid ItemsSource="{Binding List}" SelectionMode="Extended" IsReadOnly="True" AutoGenerateColumns="False" ...

Coloring WPF DataGridRows one by one

I'm making a WPF program which is able to color the rows in a datagrid one by one in red using the 'for' loop and I've encountered something weird. If the datagrid has more than 40 rows of data from a database table, it doesn't color all the rows. Here's the code I'm using. private void Red_Click(object sender, RoutedEventArgs e) {...

WPF Datagrid Multiple Selection without CTRL or Space

The WPF Datagrid has two selection modes, Single or Extended. The WPF ListView has a third - Multiple. This mode allows you to click and select multiple rows without CTRL or Shift being held down. Anyone know how to do this for the datagrid? ...

WPF Datepicker Control None option(WPF ToolKit)

How to provide an option to select No dates(None) in datepicker control? Please help!! Thanks Sharath ...

Windows 7 theme for WPF?

Is there any way to make a WPF app look like it's running on Windows 7 even if it's running on XP? I'm looking for some kind of theme I can just paste in. I'm aware of the themes project on Codeplex (http://www.codeplex.com/wpfthemes), but it lacks support for DataGrid, which is something I critically need. I was thinking maybe the Windo...

WPF Toolkit: DataGrid EventHandler for CheckBoxColumn.CheckedChanged?

Hi, I am currently playing around with WPF and the WPF toolkit which contains a WindowsForms-style DataGrid. I have bound a list of custom objects to the grid as ItemsSource. These objects contain two boolean properties which are editable using the datagrid. Synchronising back into my list works fine using the build-in databinding mode...

WPF DataGrid Templates for sets of columns

I want to change the content of the data grid column definition based on state in the ViewModel or based on the data bound to the DataGrid. How do I do this via templates and template selectors? I want to write xaml and not code in order to do this. Ex: there are two subclasses A and B that have 5 common columns and 5 completely diffe...

WPF Datagrid : Programatically bringing a column into view (horizontal scroll)

I would like to bring a column into view programatically. I have a lot of columns and when they are off screen i would like to select a cell and bring that cell into view, i can select a cell that is off screen and when i horizontal scroll to bring the cell visible the cell is selected. i know you can do this with the rows, i.e Scroll...

WPF Grid and DataGrid sizing

The UserControl I'm trying to work with is essentially laid out like so: <Grid> <Grid.RowDefinitions> <Row Height="*"/> <Row Height="*"/> </Grid.RowDefinitions> <wpftoolkit:DataGrid x:Name="PrimaryGrid"/> <!-- ~10 rows --> <Border> <Grid> <Grid.RowDefinitions> <Row Height="*"/> ...

Changing text color on a WPF Calendar?

Is there a simple way to change the text color of a WPF Toolkit Calendar control? I thought it would be simple, but it appears that the color is hard-coded. To change it, I am going to have to go pretty deep into the control templates for the Calendar and its component parts. Doing so has some undesirable side effects. Here is an examp...

How to show a loading graphic/animaiton when wpf data binding is taking place

I have a WPF user control that contains a data grid. I'm binding an observable collection of view models to it. Each view model has another collection of view models that I'm using to bind another data grid to. So the effect is a data grid with a nested data grid contained in the row details template. Normally the binding is quite quick...