i am using WPF, connected to SQL DataBase via LinqToSql. I have filled DataGrid using ItemsSource. I would like to clear everything in my DataGrid, except first two rows(ID,first and second name), and Headers ofcourse, by pressing a button. All items i would like to(either set to null or 0) remove, are floats, but I can’t find the right logic
Tag: wpf
Database in WPF and Windowformapps
I’m developing applications using either WPF or WindowFormApps that can store and manage database. The question is that how can i create an in-app database or which kind of database should I use that can run whenever I install it on other devices. My application cannot run on other devices since there is no SQL server on that PC and
c# How to dapperRow to strongly typed object displayed in grid view
I am sure i have not the best practice solution like the most of u guys could program, but im new in the business so pls give me a chance 😛 i created a table in my sqlite database and added a Employee to the Employee table. I Set the DataContext of my GridView to the returned List from my
SQL connection string is not recognised and throws and exception in C#
CONTEXT: I am writing a WPF app. It works with a SQL Server database in which I put some data, concretely the strings Titulo and Descripcion, the int XP and the string fotoMision. When I click a …
How can I best implement async into my WPF application?
I’m working on a WPF application that runs SQL queries and returns a data grid of the results when pressed. Currently, the structure of my methods as I try to figure out async is as follows: Depending on the query ran, my application can get for anywhere between 30 seconds to 20 minutes. I have a progressbar on my application
ConfigurationManager in WPF
I have a config file in a wpf project to store the connectionstring. But when I try to get AppSettings and ConnectionStrings, I get null. the WEB.config file is like this: I tried in several ways: None of them worked. But this one worked: (That means I cannot use a config file, which is against my will) I need help.