About 3,740,000 results
Open links in new tab
  1. Getting a count of rows in a datatable that meet certain criteria

    Mar 10, 2011 · I have a datatable, dtFoo, and would like to get a count of the rows that meet a certain criteria. EDIT: This data is not stored in a database, so using SQL is not an option. In …

  2. C# SqlDataAdapter Example - The Developer Blog

    Use SqlDataAdapter with SQL to populate a DataTable for use in Windows Forms. SqlDataAdapter interacts with the DataTable type. It can fill a DataTable with a table from your …

  3. Display contents of DataTable in DataGridView in Windows Forms ...

    May 31, 2014 · In this article I will explain with an example, how to display contents of DataTable in DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

  4. count records from sql table and display it on textbox

    Oct 16, 2013 · To fetch a value from datatable use row[columnName] SqlDataAdapter sda = new SqlDataAdapter( "select count(site) As siteCount from [ICPS].[dbo].[excel GPS postcode]", …

  5. c# - Displaying specific rows from a data table in a Windows Forms ...

    Dec 28, 2015 · I'm using a disconnected application (loading the SQL database into a dataset) and I am trying to show only rows where the value of a specific column is equal to a number …

  6. c# display table from sql server on winform - Stack Overflow

    Feb 9, 2016 · Drop a DataGridView on your form, and use this code to populate it using(var connection = new SqlConnection(myConnectionString)) using(var adapter = new …

  7. C# windows form button to execute SQL Query - Stack Overflow

    Feb 26, 2020 · How do I create a class with SQL connection and query functions and calling it to my windows form buttons?

  8. How do I add a count column to my table? — DataTables forums

    Jun 1, 2021 · Previously, with a coded table, I could either run a separate count query within the while loop to generate the counts, or I could use "COUNT(CASE WHEN this = that THEN 1 …

  9. DataTable In C# - C# Corner

    Code sample in this article demonstrates how to create a DataTable dynamically in C# code and DataTable rows and DataTable columns and display data in a DataGridView control using …

  10. Windows Form Table - Microsoft Q&A

    Dec 28, 2023 · If you want to create a table-like structure in a Windows Forms application using C#, you can use the DataGridView control. The DataGridView control is a versatile control that …

  11. Some results have been removed
Refresh