About 50,100 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. Single click edit in WPF DataGrid - Stack Overflow

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

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

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

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

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

  6. c# - WPF DataGrid cell value changed event - Stack Overflow

    Dec 23, 2015 · WPF DataGrid cell value changed event Asked 10 years ago Modified 6 years, 4 months ago Viewed 66k times

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

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

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

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