About 53,400 results
Open links in new tab
  1. 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 …

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

  3. winforms - Good DataGridView tutorial - Stack Overflow

    Aug 9, 2013 · I'm writing a windows C# application which I wish to use data grid views, but unable to find a good tutorial on to take complete control of the datagrid eg: add columns, add data etc.

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

  5. How to Set style for DataGrid header in WPF - Stack Overflow

    How to Set style for DataGrid header in WPF Asked 14 years, 1 month ago Modified 6 years ago Viewed 98k times

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

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

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

  9. 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 = doubleColumnTable; …

  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 status = " + …