About 53 results
Open links in new tab
  1. The Difference Between a DataGrid and a GridView in ASP.NET?

    Like the DataGrid control, the GridView control was designed to display data in an HTML table. When bound to a data source, the DataGrid and GridView controls each display a row from a …

  2. select - WPF Datagrid set selected row - Stack Overflow

    Dec 30, 2009 · 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 …

  3. Change DataGrid cell colour based on values - Stack Overflow

    Apr 5, 2011 · 177 If you try to set the DataGrid.CellStyle the DataContext will be the row, so if you want to change the colour based on one cell it might be easiest to do so in specific columns, …

  4. c# - ¿Como llenar un DataGrid con registros obtenidos de una …

    Apr 8, 2018 · Quiero llenar un DataGrid que tiene columnas predefinas y los datos se obtienen de una base de datos. Anteriormente utilizaba el siguiente codigo para llenar el DataGrid …

  5. How can I paginate a WPF DataGrid? - Stack Overflow

    Apr 24, 2009 · How can I set paging in a wpf DataGrid? This code seems to miss a crucial part: how to make the datagrid just show ItemsPerPage instead of all items, right?

  6. How can I set the color of a selected row in DataGrid

    In my case, the reason was that I also had a CellStyle in my datagrid, and the CellStyle overrode the RowStyle I was setting. Interestingly so, because the CellStyle wasn't even setting the …

  7. c# - Disable selecting in WPF DataGrid - Stack Overflow

    Mar 23, 2010 · Learn how to disable selection in WPF DataGrid using C# with practical solutions and examples discussed by the community.

  8. Binding ItemsSource of a ComboBoxColumn in WPF DataGrid

    Binding ItemsSource of a ComboBoxColumn in WPF DataGrid Asked 14 years, 11 months ago Modified 4 years, 6 months ago Viewed 149k times

  9. How to Create DataGrid with .NET MAUI Preview 7?

    Aug 20, 2021 · Building a complete datagrid with considerations for cell editing, column sorting, and data binding with virtualization in mind is a big task. You could just get one already written …

  10. How do I change the background color of a cell using WPF Toolkit …

    Aug 28, 2011 · I'm using the WPF toolkit datagrid, and I'd like to set the background color of a cell, not the row, based on the content of the cell. For the sake of simplicity, lets say the …