About 56,500 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 …

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

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

  5. How to customize DataGrid in WinUI3 via C# - Stack Overflow

    Feb 26, 2024 · DataGrid table = new DataGrid(); table.ColumnWidth = DataGridLength.SizeToCells; table.AutoGenerateColumns = true; table.ItemsSource = …

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

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

  8. Get selected row item in DataGrid WPF - Stack Overflow

    Oct 12, 2010 · I have a DataGrid, bound to Database table, I need to get the content of selected row in DataGrid, for example, I want to show in MessageBox content of selected row. Example …

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

  10. How to refresh datagrid in WPF - Stack Overflow

    Jul 4, 2012 · My source is in a MySQL database, I've made an update command and now I need to refresh my DataGrid. MySqlCommand cmd = new MySqlCommand( "update request set …