About 54,900 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. 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. 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 …

  4. c# - Select DataGridCell from DataGrid - Stack Overflow

    Apr 2, 2012 · I have a DataGrid WPF control and I want to get a specific DataGridCell. I know the row and column indices. How can I do this? I need the DataGridCell because I have to have access to its …

  5. 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 caveat with using …

  6. 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 SelectedItem …

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

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

  9. How do I bind a WPF DataGrid to a variable number of columns?

    9 I have found a blog article by Deborah Kurata with a nice trick how to show variable number of columns in a DataGrid: Populating a DataGrid with Dynamic Columns in a Silverlight Application …

  10. 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 implemented a …