Ok, here is my situation: I have a DataGridView containing Messages, to which the following style is applied. <Style x:Key='ChangeSetRowStyle' TargetType='{x:Type DataGridRow}'&
I have a need to highlight the MouseOver row of the datagrid, which seems to be easy with this style: <Style TargetType='DataGridRow'> <Style.Triggers> <
I'm creating a DataGrid with rows with AlternatingRowBackground property. However, the data in the rows must be amended and that takes some time. I'm trying to make the background
What I am trying to accomplish is customize the DataGrid control so that each row has rounded corners, no gridlines (just the design I'm working with). What I have been trying to d
I have a data-bound DataGrid with alternating row background colors. I would like to color a cell differently based on the data it contains. I have tried the solution suggested by
I have tried this method.. without luck.. <Style TargetType='{x:Type DataGridRow}'> <Style.Triggers> <Trigger Property='ItemsControl.AlternationIndex' Val
I am looking to get the row number of which the mouse cursor is on in a DataGrid (So basically on a MouseEnter event) so I can get the DataGridRow item of which the ItemSource is b
I'm using this snippet to analyze the rows I've selected on a datagrid. for (int i = 0; i < dgDetalle.Items.Count; i++) { DataGridRow row = (DataGridRow)dgDetalle.ItemContai
In an event handler for a Command for a DataGrid, I get DataGridCell in ExecutedRoutedEventArgs. However, I couldn't figure out how to get its associated DataGrid and DataGridRow.
I have a WPF DataGrid which has an AlternatingRowBackground brush. It's configured to color every other row. I'd like to do something on mouse over that highlights the current ro
How do I use the Datagrid.SelectedItem to select a row programmatically? Do I first have to create a IEnumerable of DataGridRow objects and pass the matching row to this SelectedIt
WPF DataGrid double click the selected DataGridRow and Row data, Programmer All, we have been working hard to make a technical sharing website that all programmers love.
You can alternatively do this: <DataGrid> <DataGrid.RowStyle> <Style TargetType="DataGridRow"> <Setter Property="cal:Message.Attach" Value="[MouseDoubleClick] =
There might be an easier way to do this but I got it to work by using the GetIndex() method on the DataGridRow class. This returns the index in to the data sour
If hideRow is not a field of the table (i.e. not a column in the DataGridRow): <DataGrid.RowStyle> <Style TargetType="{x:Type DataGridRow}"> <Style.Triggers> <D