SaveChanges of datetimepicker on ValueChanged
I use the following code to save the selection of a combobox to the SQL server and then filling a datetimepicker with the according value:var comboboxSelection =...
View ArticleMay I ask after insert data to combo box and save it to the database at the...
I develop a program one way is insert data from combo box another one is delete data from combo box but i face error message from delete data from combo box below is my code. may i ask is possible at...
View ArticleMay i ask how to 1 time insert 2 picture to database
Good Day, i develop a program is one time insert 2 picture 2 database code below is my code. i face the error message is Data type mismatch in criteria expression. can some one guide me...
View Article"Formatted value of the cell has a wrong type" starts occuring after...
I had a major issue with Visual Studio Designer redesigning my DataGridView columns without me doing anything to cause it to do so due to a bug I have been experiencing lately. Now I have fixed that...
View ArticleDatagridview freezes when retrieving data from remote sql server
I have a windows forms project that connects to a sql server using ef core. I have different controls on my form that are data bound through bindingsource objects. But I have to fill a datagridview...
View ArticleEditing data in a bound ListView
Hi,I've got a ListView that gets populated with the results from an SQL query. The query brings up many results, so I use a reader and populate the ListView (lstDetails) like this: while...
View ArticleMay i ask how to let combo box can bind with database
I develop a program is related combo box bind database but i fail to bind can someone help me take a lookBelow is my code Dim cnn5 As New OleDb.OleDbConnection cnn5.ConnectionString =...
View ArticleMay i ask a code about picture box auto fit
BELOW IS THE CODE Private Sub AutoFitTextbox() Dim command As New OleDbCommand("SELECT * FROM TABLE1 WHERE PRODUCT_ID = @PRODUCT_ID", mycn) If TextBox1.Text IsNot ""...
View ArticleEdit a datatable from datagridview with a realtion to an other table
Hi, I have two tables Table FAMILIE which stores the ID from table ORDE. When i open Table FAMILIE with a dataadapter and show in in a datagridview i would like to be able to choose an ID from the ORDE...
View ArticleI would like to ask about the problem of refreshing combo box. after combo...
I wrote the code about refresh combo box data after COMBO BOX bind database But I keep failing the data of refresh combo box. Below is mu code Public Function RetrieveRecords(ByVal strQuery As String)...
View ArticleDataGridView text changed
Hi. Is there a way to detect the text changed event in a DataGridViewCell in the same way as the TextChanged event in a regular TextBox? Thanks!
View ArticleI am trying to use multiple textbox But I am facing a problem. The value of...
private void DataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { if (DataGridView1.CurrentCell.ColumnIndex.Equals(1)) {...
View ArticleExecuting ExecuteReaderAsync resets other controls back to old value
I have different controls and a datagridview on my form. I use EF Core to bind the controls to a SQL Server DB. I use the following code to fill the controls except the datagridview:private...
View Articlec# winform If condition is meet = Good
I have a piece of code that it one cell is greater then another turn the cell red.I am trying to change it to where if the condition is meet add text good to the cell and if not add Bad.could someone...
View ArticleWindows Forms VBNET (Microsoft Visual Studio Community 2019): DataGridView...
Hi, The problem is that the foreground-colors of text disappear after sorting (click on a row header) and all rows are again black (default color).How can I solve this problem?Thanks
View Articledatagridview with combobox saving value
Hi, I have a data grid with a DataGridViewComboBoxColumn on it. The combobox takes its data from a data table (ORDE) with the columns ID and NAAM. In the source table there is a column ORDE_ID. If you...
View ArticleMay i ask if message box pop out fail message, user can not save data code...
i develop a program. the purpose in this program is ,if message box pop out fail message(TextBox_Value_Control) user can not save data to database. hope give me an advise or information.because i am no...
View ArticleC# Search Datagridview and show results in DGV
I am pasting data in a DGV and want to search the first column [0]. I am using textbox change the code i have so far only highlights the row I need it to only show the rows it equals. This is what I...
View ArticleMay i ask how to make textbox only allow (-,.(dot)and number)
I write code about textbox allow numbers (-) and (.) dot However, the (-) aspect is unavailable. can help me take a look. Thanks. Below is my code If sg1.Text = "" Then 'sg1.Focus()...
View ArticleHow Can I Save Data to Access database through Windows Form Application C#
HiI am currently having trouble with saving data back to a Microsoft Access Database. private void ButSaveAndUpdate_Click(object sender, EventArgs e) { connectiontodb.Open();...
View Article