All Questions
Tagged with datagridview wpf
280 questions
104
votes
5
answers
108k
views
Button in a column, getting the row from which it came on the Click event handler
I've set the itemsource of my WPF Datagrid to a List of Objects returned from my DAL. I've also added an extra column which contains a button, the xaml is below.
<toolkit:DataGridTemplateColumn ...
15
votes
4
answers
32k
views
WPF DataGrid how to get when ItemsSource updates
Which event fires when DataGrid's source is updating? I've tried DataContextChanged and SourceUpdated but it never worked out.
Actually I need a simple thing. I want, if there is a new row comes, ...
15
votes
5
answers
32k
views
WPF DataGrid Vs Windows Forms DataGridView
I have experience in WPF and Windows Forms, however have only used the Windows Forms DataGridView and not the WPF DataGrid (which was only included in .Net 4 or could be added to .Net 3.5 from ...
9
votes
2
answers
29k
views
What exactly mean by this Urikind.relative
What i am doing is i will have a datagridview when i select a row and click on show button i would like to display the image along with some information for that i written the following code
public ...
9
votes
4
answers
9k
views
WPF/MVVM: Sync scrolling of two datagrids in different views
I have two datagrids side by side bound to different data tables and each with their own view.
The datatables both have the same number of rows, and I want both grids to maintain the same scroll ...
6
votes
3
answers
1k
views
Limitations of using .NET 2.0 (Windows Forms) controls in WPF?
I want to start a new application on WPF. The new User interface in WPF needs DataGridView control and PropertyGrid Control. But it looks like that these two controls won't exist in WPF and I want to ...
6
votes
2
answers
2k
views
How can I limit height of wpf datagridview based on number of rows?
how do I set the height of the datagridview based on number of visible rows. Let's say I have a datagridview with datasource, having 100 rows. I want the viewable area to show only 10 rows. The other ...
5
votes
3
answers
8k
views
WPF DataGrid adds rows but not the data (blank rows)
Alright so this is going to be hard to explain.
Scenario:
I have a DataGrid defined as follows:
<DataGrid Height="100" Name="test" IsReadOnly="False">
<...
5
votes
2
answers
4k
views
DataGrid calculated columns
I am trying to transfer my excel app to WPF datagrid. I am going to enter data to Column A and in column B I would like to make calculation taking previus cell and current cell of A column and add ...
5
votes
4
answers
4k
views
WPF UI control vendors - ActiPro, Telerik, Xceed, Infragistics, DevExpress and others
I have to choose a commercial WPF UI control library for our project.
Browsing the web I have found these major vendors:
Actipro: http://www.actiprosoftware.com/Products/DotNet/WPF/WPFStudio/...
5
votes
2
answers
2k
views
Emulate double click event in Datagrid with touchDown
i am new using WPF. I have a WPF Window with a datagrid wich launch a process when double click occurs. This work great, but when i do this in a tablet(with windows 7), using the touch screen, the ...
4
votes
1
answer
5k
views
WPF datagrid header above headers
So I'm trying to make this datagrid a bit more organized:
Currently I'm binding data from a Json file which is hapening in th C# code. Now I Don't want to keep writing "pilot x", "pilot y", etc... ...
4
votes
2
answers
2k
views
ListView programatically added columns shows type of item
I got a ListView in another assembly and want to add a column to it. The items in the listview are objects of a class in that assembly.
When I add a column like this
var col : GridViewColumn = new ...
4
votes
1
answer
2k
views
does the wpf datagrid have a virtual mode like the winforms DataGridView?
The winforms DataGridView has a virtual model and uses the OnCellValueNeeded method to gets cell values from a a user defined data store.
How do i do this in wpf? The DataGrid doesn't seems to have a ...
4
votes
1
answer
2k
views
How do I add the DataGridView component to Visual Studio Community and my project
I want to use the DataGridView in my WPF project. I see it in my toolbox list but it is inactive. I cannot figure out how to activate it and make available to my project.