Skip to main content

All Questions

Tagged with
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 ...
RekrowYnapmoc's user avatar
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, ...
iLemming's user avatar
  • 36.1k
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 ...
markmnl's user avatar
  • 11.4k
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 ...
Developer's user avatar
  • 8,618
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 ...
stevosaurus's user avatar
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 ...
Ashish Ashu's user avatar
  • 14.6k
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 ...
neblinc1's user avatar
  • 383
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"> <...
Kyle's user avatar
  • 2,369
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 ...
Jim's user avatar
  • 2,828
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/...
mark's user avatar
  • 62.4k
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 ...
sonseiya's user avatar
  • 488
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... ...
Robin's user avatar
  • 1,577
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 ...
ZoolWay's user avatar
  • 5,501
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 ...
arkina's user avatar
  • 1,029
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.
Cass's user avatar
  • 557

15 30 50 per page
1
2 3 4 5
19