Tagged Questions
1
vote
0answers
71 views
Binding Row to Validation Rule WPF
I want to bind TextBox's Tag (which is inside a DataGrid), to validation rule's CurrentLegStrategy property (which is a DependencyProperty). Although I've done something similar with Deal dependency ...
1
vote
0answers
348 views
implement wpf gridview as same in the Metro style gridview
For my WPF application i'm trying to get windows 8 metro Gridview style in WPF. Here is my sample code of metro style Gridview design:
<DataTemplate x:Key="DashboardItemTemplate">
<Grid ...
1
vote
0answers
53 views
DataGrid with internal margins in a style has wrong initial size, sorts itself out on resizing the window
I have a DataGrid containing a number of DataGridTemplateColumns. One of these has Width="*" and the rest have Width="Auto". Most just contain a TextBox. I want a margin on each side of each element, ...
1
vote
0answers
82 views
WPF get data values from a CollectionView and put them in variables
I want to know how to get values from a table in a DataViewCollection and put them into variables.
I have bought and read many books and bought and watched many videos but not show me what I want. ...
0
votes
0answers
12 views
How to Access button present in WPF cell of WPF table
I am Testing WPF Application using Coded UI.. My testcase is like verifying whether button is enabled or not. wpf button is present in wpftcell which is in the wpftable.
public void ...
0
votes
0answers
11 views
How to make ControlTemplate generic or common with TemplateBinding
I have modified RadComboBox control to display RadGridView inside it. I replaced ScrollViewer and ItemsPresenter with following XAML. It's working fine. However I have multiple ComboBoxes and I don't ...
0
votes
0answers
12 views
GridViewComboBoxColumn with multiple columns in RadGridView
I am using WPF Telerik RadGridView control. I want display multiple columns in GridViewComboBoxColumn with column title and sorting functionality.
How can do this? Do I need to modify ...
0
votes
0answers
16 views
DataGrid inside a ComboBox in WPF
I want to place a DataGrid inside a ComboBox. And that ComboBox again inside a DataGrid. The reason behind placing DataGrid is to allow user to Sort records and to display multiple column with header. ...
0
votes
0answers
47 views
WPF C# datagrid fix view row (fix scroll)
i am working on WPF datagrid and want to fix view after insert row at top, whenever row insert at top view scroll down by 1 row, i am using following code
int i = 0;
DataTable dt = null;
...
0
votes
0answers
51 views
wpf checklistbox with Shift shortcut for multi selection
I would like to implement a wpf checklistbox with Shift/Ctrl shortcut for multi selection.
Got the following solution, but it can only multi select the TEXT area with Shift/Ctrl, in the
checkbox ...
0
votes
0answers
40 views
WPF DataGrid to generate columns from a collection
I have a form where user lands by selecting some start and end date. So the form has to load with those many days in the users selection as grid columns. So How do i generate these columns == number ...
0
votes
0answers
49 views
cannot append a row to datagrid WPF
I scratched my head a lot and worked also, but still not able to add a row to a datagrid. I mean i cannot append, when ever i am adding a new row the previous data is going away and only tht one row ...
0
votes
0answers
33 views
I added Expander and Grid controls to the Tab control and the controls are not getting resized along with main window
I added Expander and Grid controls to the Tab control and the controls are not getting resized along with main window though their width was set to "auto" Grid Alignment set to Stretch. How can i fix ...
0
votes
0answers
132 views
How do I add multiple controls dynamically to a DataGridTemplateColumn of a datagrid using wpf?
I need to add multiple controls to a DataGridTemplateColumn of a datagrid from code behind. It can be done using Xaml but i need to do it dynamically from code behind coz adding controls are based on ...
0
votes
0answers
105 views
WPF DataGrid Binding DataGridComboBox when AutoGenerateColumns is true
Although I am quite familiar with .NET technologies, especially in ASP.NET, I am new to WPF.
I have a class named Animal, which contains a reference to AnimalType. I want to put a DataGrid to my ...