About 53,600 results
Open links in new tab
  1. How to make the last column in WPF datagrid take all the left space ...

    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 to 50 …

  2. How can I set the width of a DataGridColumn to fit contents ("Auto ...

    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 visi...

  3. Single click edit in WPF DataGrid - Stack Overflow

    Aug 6, 2010 · 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...

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

    <DataGrid MinRowHeight="40"> After feeding the datagrid with datas, the text in each cell is top and left aligned. I could not find an easy way to center that text. Any suggestions for doing that?

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

  6. 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 DataGrid. However, it …

  7. 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. As an alternative …

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

  9. Repeater, ListView, DataList, DataGrid, GridView ... Which to choose?

    Sep 26, 2008 · So many different controls to choose from! What are best practices for determining which control to use for displaying data in ASP.NET?

  10. I need the Expand / Collapse for RowDetailsTemplate

    Selecting a Row on the Grid should expand the Row using the RowDetailsTemplate to display the content. This makes that Row the Selected Row and sets the value of the DataGrid's SelectedIndex …