About 84,600 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 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 …

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

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

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

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

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

  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.

  8. Getting WPF Data Grid Context Menu Click Row - Stack Overflow

    Typically, you do not deal with rows (if you do - think again about the reasons) - instead you work with view model. When you open context menu, you get your item selected, so it can be …

  9. datagrid - C# - How to get cell value from DataGridView ... - Stack ...

    Dec 15, 2022 · I'm using a three columns DataGridview. Two columns are filled by data read with SQL. The third column is a checkbox. I tried to use these two code snippets: for (int i=0, …

  10. c# - How to bind DataTable to Datagrid - Stack Overflow

    As far as I could research there is no more elegant solution in .NET 4.0 to bind a scaleable -column DataTable to a DataGrid. There are enough examples around the web to bind fixed …