About 50,100 results
Open links in new tab
  1. How to make the last column in WPF datagrid take all the left …

    Jun 10, 2015 · Standard WPF 4 Datagrid. Let' say I have datagrid 200 pixels wide, and 2 columns. I would like the columns take always entire space, meaning if the user resizes the first column …

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

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

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

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

    Apr 24, 2009 · How can I set paging in a wpf DataGrid?The code project article above is quite good for getting this done with ADO tables. While for most applications, it is likely to work …

  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# - Datagrid binding in WPF - Stack Overflow

    The DataGrid is derived from ItemsControl, which relies on its ItemsSource property to define the collection it binds its rows to. Hence, if list isn't a property of an object bound to your control's …

  8. How to bind collection to WPF:DataGridComboBoxColumn

    Which I am trying to bind to a DataGrid with two text columns and a combo box column. For the combo box column, property Measure is the current selection and Measures the possible values.

  9. c# - WPF Custom datagrid column header - Stack Overflow

    Mar 2, 2013 · I need to create a Custom dataGrid DataGridTextColumn like the sketch below: The Red rectangles are TextBox and are used to search within the column. so far i have …

  10. c# - WPF DataGrid inside a ScrollViewer - Stack Overflow

    May 18, 2020 · </StackPanel> </ControlTemplate> </DataGrid.Template> </DataGrid> </ScrollViewer> If you put the canvas inside the datagrid's template it will consider it as a part …