About 72,000 results
Open links in new tab
  1. How can I hide a column in a MUI X Data Grid? - Stack Overflow

    Mar 23, 2022 · <DataGrid slots={{toolbar: GridToolbar}} /> columnVisibilityModel is a good solution if you don't want to let users manually select which columns they want to hide. The …

  2. c# - Single click edit in WPF DataGrid - Stack Overflow

    I want the user to be able to put the cell into editing mode and highlight the row the cell is contained in with a single click. By default, this is double click. How do I override or implement t...

  3. How to center the content of cells in a data grid? - Stack Overflow

    This is rather an old post, but if someone still needs this and finds that the borders/separations of cells are gone when using the approved answer, it's because they are using a Grid instead of …

  4. How can I set the width of a DataGridColumn to fit contents …

    I have a WPF DataGrid that contains some data. I would like to set the width of the columns such that the content fits in and never gets cropped (instead, a horizontal scroll bar should become …

  5. Binding Visibility for DataGridColumn in WPF - Stack Overflow

    First of all, DataGridTextColumn (or any other supported dataGrid column) does not lie in the Visual tree of the DataGrid. Hence, by default it doesn't inherit the DataContext of the …

  6. DataGrid in .NET MAUI - Stack Overflow

    Nov 24, 2022 · The DataGrid control hasn't been available or approachable in .NET MAUI. However, you can follow up this feature request: [Enhancement] DataGrid Control on Github. …

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

  8. 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 …

  9. wpf - DataGridCheckboxColumn two way binding - Stack Overflow

    May 18, 2012 · I am using the DataGrid from the WPF toolkit in .NET 3.5. I have a datagrid column bound to a boolean property from my source object. The checkbox is calling the …

  10. c# - WPF DataGrid cell value changed event - Stack Overflow

    Dec 23, 2015 · WPF DataGrid cell value changed event Asked 9 years, 11 months ago Modified 6 years, 3 months ago Viewed 66k times