About 65,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 DataSource …

  2. How can I refresh c# dataGridView after update - Stack Overflow

    I have a dataGridView when I click on any row a form is opened to update the row data, but after ending updates the updating form is closed but the dataGridView data is not updated How can i do t...

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

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

  5. c# - DataGridView.Clear () - Stack Overflow

    Sep 19, 2010 · Here comes the trouble. I want to delete all rows from datagridview. This how i add rows: private void ReadCompleteCallback(object clientHandle, Opc.Da.ItemValueResult[] results) { foreach...

  6. c# - Looping through each row in a datagridview - Stack Overflow

    How do I loop through each row of a DataGridView that I read in? In my code, the rows won't bind to the next row because of the same productID, so the DataGridView won't move to a new row. It stays...

  7. Binding Visibility for DataGridColumn in WPF - Stack Overflow

    First of all, DataGridTextColumn (or any other supported dataGrid column) does not lie in the Visual tree of the DataGrid. Hence, by default it doesn't inherit the DataContext of the DataGrid. However, it …

  8. c# - WPF DataGrid inside a ScrollViewer - Stack Overflow

    May 18, 2020 · </StackPanel> </ControlTemplate> </DataGrid.Template> </DataGrid> </ScrollViewer> If you put the canvas inside the datagrid's template it will consider it as a part of the datagrid so …

  9. how can I enable scrollbars on the WPF Datagrid?

    May 25, 2015 · When I run the following Northwind WPF Toolkit Datagrid code from this article, I get a datagrid, but there are no scrollbars and hence the user can only see part of the datagrid. I am using …

  10. 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 great, and is easy to …