About 57 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 DataSource …

  2. Horizontal scrolling in Datagrid - Radzen.Blazor Components - Radzen

    Mar 10, 2025 · Blazor DataGrid Component with code-less paging, sorting and filtering of... Use RadzenDataGrid to display tabular data with ease. Perform paging, sorting and filtering through …

  3. How do I make XAML DataGridColumns fill the entire DataGrid?

    I am using DataGrids in XAML (not Silverlight) with resizable columns, the DataGrid will expand if the user resizes the screen. Currently if the widths of all the DataGrid columns are less than the

  4. 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, especially …

  5. Stretching columns to fill all available space of DataGrid

    Jul 29, 2011 · Since the vast majority of the answers I've found on this topic deal with XAML, here is a C# solution to set all columns to fill the available space in the datagrid.

  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 background …

  7. Binding ItemsSource of a ComboBoxColumn in WPF DataGrid

    3 the bast way i use i bind the textblock and combobox to same property and this property should support notifyPropertyChanged. i used relativeresource to bind to parent view datacontext which is …

  8. c# - MudBlazor DataGrid Default Column Width - Stack Overflow

    Oct 20, 2023 · I have a MudBlazor DataGrid and some of the cells have a long string of text. By default, MudBlazor will make the column width the length of the longest cell value. I want the default column …

  9. c# - right click context menu for datagridview - Stack Overflow

    Feb 9, 2015 · While this question is old, the answers aren't proper. Context menus have their own events on DataGridView. There is an event for row context menu and cell context menu. The reason …

  10. wpf - Text alignment in DataGrid - Stack Overflow

    Aug 12, 2013 · 0 I think it's depends on panel who is filled or docked in datagrid horizontal content alignment doesn't work for center content alignment you can use DataGrid.resource tag like this