wpfdatagrid Questions
4
Solved
I need to know when a WPF Datagrid has been sorted by the user. Why is there no Sorted event? I can only find a Sorting event.
I also investigated the CollectionView and ListCollectionView that is...
Glasscock asked 5/3, 2012 at 17:32
6
I have a tab control in the GUI and there is WPF 4.0 datagrid in one of the tabs. When I click on a cell in the grid and edit something and then switch tabs, I get a Defer Refresh error:
DeferRe...
Exclave asked 16/8, 2013 at 20:26
3
Solved
I am creating a WPF data grid, and I want to be able to reorder rows by dragging and dropping, like this: I click on a row and drag it up or down. As I do, a marker shows where the row will be drop...
Acrylyl asked 17/9, 2009 at 11:9
4
Solved
I have the following grid
<DataGrid
x:Name="TablesDataGrid"
Grid.Column="0"
Grid.Row="1"
ItemsSource="{Binding FilteredModels.View}"
AlternationCount="2"
AutoGenerateColumns="False"
C...
Rosebud asked 25/11, 2013 at 22:22
2
Solved
I have a DataGrid, with columns XAML as such:
<DataGridTextColumn Header="Time" Binding="{Binding Date, StringFormat='yyyy-MM-dd HH:mm:ss'}" SortMemberPath="Date" SortDirection="Descending" Wid...
Felt asked 11/3, 2015 at 11:14
5
Solved
If there is no record available, I want to add a TextBlock on data grid, below the header, showing the message "No Record Found."
Consider the attached image for reference.
Villon asked 14/1, 2011 at 2:23
7
Solved
In my .NET 3.5 WPF Application, I have a WPF DataGrid which will be populated with 500 columns and 50 rows.
The performance of App is very very poor in scrolling, or when I do DataGrid.Items.Refres...
Treytri asked 7/12, 2012 at 14:0
6
Solved
I was looking for the solution on the internet but was not able to find it within my sample. I need to add a separator between Context menu item that are generated from code behind. I tried to add ...
Sural asked 28/1, 2011 at 1:3
5
Solved
I'm constructing a datagrid in Windows Presentation Foundation, and I have a problem. When a user double-clicks on a cell in my datagrid, the cell goes into edit mode. I want to prevent that. Inste...
Herbage asked 20/7, 2011 at 18:8
3
Solved
In my XAML file I have a DataGrid with a context menu. The data source is a ViewModel which has a property EntityCollection (an ObservableCollection) as the ItemsSource of the DataGrid and another ...
Sphere asked 25/1, 2011 at 23:0
7
Solved
My source is in a MySQL database, I've made an update command and now I need to refresh my DataGrid.
MySqlCommand cmd = new MySqlCommand(
"update request set status = " + StatusRequest(value) +
...
Lophobranch asked 4/7, 2012 at 7:51
5
I'm building an application, which uses many ItemControls(datagrids and listviews). In order to easily update these lists from background threads I used this extension to ObservableCollections, whi...
Corollary asked 15/1, 2013 at 11:28
7
Solved
I want to have a Custom DataGrid which can,
Move to next cell when Enter key is pressed also if it is in edit mode.
When the last column in the current row is reach, the focus should move to the ...
Clanton asked 1/5, 2012 at 21:33
12
I have a DataGrid with first column as text column and second column as CheckBox column. What I want is, if I click the check box. It should get checked.
But, it takes two click to get selected, fo...
Nassi asked 30/9, 2010 at 18:12
5
Solved
I am new to the WPF ,and i use it to build a point of sale system.
I have a DataGrid control in the main window bound to an ObservableCollection of Item, the cashier will enter/scan the items to b...
Lexicography asked 17/2, 2011 at 11:51
3
I have a problem with a ScrollViewer that I use to scroll a user control that contains a data grid. Without the scroll viewer the columns fill the data grid as I want but when adding a scroll viewe...
Charla asked 26/7, 2013 at 7:47
6
Solved
In Josh Smith's MVVM demo he's uses a ListView with a ListViewItem style like this:
<Style x:Key="CustomerItemStyle" TargetType="{x:Type ListViewItem}">
<Setter Property="IsSelected" Val...
Shirlyshiroma asked 3/5, 2014 at 6:32
4
Solved
In my XAML code, I want to set the Background color of each row, based on a value of the object in one specific row. I have an ObservableCollection of z, and each of the z has a property called Sta...
Brindled asked 5/8, 2013 at 8:0
7
Solved
I have a WPF DataGrid that increases in height when I add data to it that won't fit inside its initial height. I don't want the height to change unless the user increases the Window size. Is there ...
Rhinitis asked 12/6, 2012 at 10:16
3
Solved
I want the context menu for a DataGrid's column headers to be different than the rest of the cells. So using the regular ContextMenu property is not going to work. There is DataGrid.RowHeaderTempla...
Anchie asked 4/10, 2011 at 22:55
5
Solved
I have a DataGridTemplateColumn with DataTemplate as a PasswordBox.
I want to warn user if CapsLock is toggled.
private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e)
{
if (...
Fluviatile asked 7/7, 2009 at 14:52
6
I have a DataGrid in a WPF form with a DataGridCheckBoxColumn, but I did not find any click event, Checked and unchecked for it...
Are these events available for the DataGridCheckBoxColumn? If not...
Wehrle asked 17/4, 2009 at 9:44
3
Solved
I have a simple DataGrid which I want the user to add some rows to.
However I want one of the columns to be a ComboBox with it's values taken from an enum.
What's the simplest way of doing this in...
Fakieh asked 3/11, 2011 at 12:23
2
Solved
I have looked on SO but haven't found an exact answer to what I am looking for. I have a DataGrid view bound to a data source. I want to style columns programmatically after the window with the dat...
Contumacious asked 28/7, 2013 at 18:2
3
Solved
I have the following code and I didnt find any way how to add the data from users
to table .I want to do that dynamically .
I have create WPF application and add Data Grid and button and I that w...
Concubinage asked 3/12, 2013 at 12:12
1 Next >
© 2022 - 2025 — McMap. All rights reserved.