Top "Datagrid" questions

A graphical user interface element that presents a tabular view of data.

How to autoscroll on WPF datagrid

I think I am stupid. I searched now for 15 minutes, and found several different solutions for scrolling on datagrids, but …

c# wpf datagrid
WPF DataGrid: How to Determine the Current Row Index?

I am trying to implement a very simple spreadsheet functionality based on a DataGrid. The user clicks on a cell …

c# wpf datagrid datagridcell
Programmatically assigning a color to a row in DataGrid

I need to assign a color to the row I add at runtime to the DataTable. How can this be …

wpf colors datagrid row
How do I dynamically generate columns in a WPF DataGrid?

I am attempting to display the results of a query in a WPF datagrid. The ItemsSource type I am binding …

wpf dynamic datagrid expandoobject
Need to format dates in dynamically built WPF DataGrid

We are binding an unknown result set to a WPF DataGrid at run time. Some of our columns are going …

wpf datetime datagrid format
WPF Error: Cannot find governing FrameworkElement for target element

I've got a DataGrid with a row that has an image. This image is bound with a trigger to a …

wpf image binding datagrid multidatatrigger
How to add context menu to wpf datagrid?

How does one add a ContextMenu to a DataGrid? I want to be able to right click anywhere on the …

wpf datagrid wpf-controls
Error: Deleted row information cannot be accessed through the row

To whom this may concern, I have searched a considerable amount of time, to work a way out of this …

c# datagrid dataset runtime
WPF - DataGrid Column with Width="*", but MinWidth to Fit Contents

What would be the best/right way to have a set of DataGrid columns have proportional width (Width="\*"), but to …

wpf xaml datagrid width datagridcolumn
Difference between ListView and DataGrid in WPF?

I have to retrieve some questions from the database and display them on the user screen dynamically. I also need …

.net wpf listview gridview datagrid