All Questions
556
questions
0
votes
1
answer
37
views
How to select where in dataGridView C#
I using microsoft visual studio, and i have box number in datagridview as follows
Box Number
4433002
4433006
4433011
I want do some sql query like "SELECT NOTE FROM TABLE WHERE BOX_NUMBER IN ...
-2
votes
1
answer
86
views
AutoFill SQL Server from Datagridview c# [closed]
I have datagridview that connects to a database in SQL Server.
In the database, I have 2 columns NumCrimCase and Prosecutor
where I need to fill Prosecutor
NumCrimCase
Prosecutor
51-4462 км 23
уффуа
...
0
votes
1
answer
108
views
how to save the result of moving a row in a datagridview in the database
I have code to move rows in datagridview using mouse drag and drop, but after closing the program or updating the table everything resets. how to make data placement saved in the database?
code that ...
0
votes
0
answers
28
views
Displaying some fields of other table rows within one field of a DataGridView
I have two tables A and B. B has a column C with integer values. For one row in A there can be more rows in B. The rows of B are related to elements of A with the primary index of A. Now I want to ...
0
votes
0
answers
57
views
Add parameter to Datatable function
I want to display procedure result in DataGridView and Get parameter value from Combobox
I have created a SQL procedure named Report_with_depo
Create proc [dbo].[Report_with_depo]
@customer_id ...
0
votes
1
answer
43
views
System.Data.OleDb.OleDbException: 'No value given for one or more required parameters.' in da.Fill(dt)
I'm doing this thing in C# Windows Form where it counts rows by group in Access Database and displays the total number of that group in dataGridview. But when I run it, I get a message that says:
...
-2
votes
1
answer
98
views
NullReferenceException was unhandled (Object reference not set to an instance of an object.) [duplicate]
I wanted to insert a data to my database with textBox.
But I don't want to add duplicate ID to my database and I want to show a message box.
Actually I did it but when I want to add a new data which ...
-1
votes
1
answer
404
views
The column named cannot be found. Parameter name: columnName'
I first added a column to the datagridview, and then I want to add a row, but it says no such columnName was found, but it exists.
I can't find how to do this, can you help me?
Datagridviewe önce ...
-4
votes
1
answer
726
views
String '12/20/2022 12:00:00 AM' was not recognized as a valid DateTime [closed]
Code & error
DateTime dt = DateTime.ParseExact(dgvSP.CurrentRow.Cells[5].Value.ToString(), "dd-MM-YYYY", CultureInfo.InvariantCulture);
dtpQLSPnsx.Value = dt;
Why my datetimepicker ...
1
vote
0
answers
41
views
C# Cannot modify an Access DataBase
I'm trying to modify an specific register on Access by C# but when I run the code, It doesn't modify anything, I have tried the same structure on adding resgisters or deleting and it works well, Help ...
1
vote
0
answers
138
views
Add new row with sum when value changes in column DataTable / DataGridview
I'm trying to add a new row with the sum of the columns when the value of the first column "Unidad" changes. Here's a picture showing the two rows i would like to add the new row in between ...
0
votes
2
answers
751
views
How to refresh data in sql table and C# windows for DataGrideView?
I'm writing a C# windows form application linked with SQL database tables, in widows form. I add a dataGridView to my form and added a table of database to it, when I run the program it show data fine....
-3
votes
2
answers
741
views
DataGridView selected row to check a checkbox
I am currently trying to check a checkbox dependent of the SQL data after selecting the row in a datagridview.
I have gotten this to display text with TexBoxes, but cannot get it to check a check box.
...
0
votes
2
answers
90
views
How to access DataGridView from another Winform and show its data in TextBox
I have 2 Forms, both forms have separate datagridview. In form 1 I have a data entry form where multiple text fields are there. In Form1, I want Doctor textfield to get data as I enter from ...
0
votes
2
answers
2k
views
Select data from database where date in current month
I have a button to show me my note's from my database in this month but there is a problem, when I used this LINQ, I got this error
System.InvalidOperationException
The LINQ expression 'DbSet()
....