Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6018825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:19:50+00:00 2026-05-23T03:19:50+00:00

I am working on a C# application that writes to a database whenever new

  • 0

I am working on a C# application that writes to a database whenever new info comes in through a file. Then, when the user wants to get some specific information, he queries the database and then, based on the query, whatever info is there in the database must be displayed in a datagrid view.

So, the database(LogDatabase) here has three fields, 1.Timestamp 2.LogMessage and 3.Hash
I send queries to the database looking for the word “ERR” in the LogMessage field. The lines that contain this must be displayed in the datagridview called “query_dataview”.

What must i do? I’ve sent queries to count the occurance of “ERR” and they worked. But I am not able to display the information in a datagrid. Please help

logDatabaseTableAdapter_query
    .Connection.ConnectionString = "data source=C:\\TMU_Files\\test33.s3db";
logDatabaseTableAdapter_query
    .Fill(this.logDatabaseDataSet_query.LogDatabase);

This is what i did to fill the entire database into another datagrid view. So, Now I want to use only those entries that satisfy the requirements of the query sent.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:19:51+00:00Added an answer on May 23, 2026 at 3:19 am
        var logDatabaseTableAdapter_queryselect = new SQLiteDataAdapter(("SELECT * from         LogDatabase where LogMessage like '%ERR%'"), "data source=C:\\TMU_Files\\test24.s3db");
        logDatabaseTableAdapter_queryselect.Fill(logDatabaseDataSet_query.LogDatabase);
    

    used this above piece of code to write onto the database. Works now… Its just important to give all the connections properly. As in, the datasource for the datagridview and then the binding source, the data-adapter and dataset..

    The msdn example code for data-table helps a lot.

    Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an application. I have a servlet (writeDataBase.class) that writes some information
Im working on an application that needs to talk to a database. The application
We're working on an application that displays information through a Direct3D visualisation. A late
I'm working with an application that logs to Windows Application Log regularly (viewable through
I'm working on swing application that relies on an embedded H2 database. Because I
I've inherited a C# Winform application that write database information into various file formats
I am currently working on a WPF application that processes data in a database
I am working on a .NET web application that uses an SQL Server database
The database for one the application that I am working on is not confirmed
I am working on splitting out an existing, working application that I currently have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.