Executing 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 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 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 ArticleForcing a virtual DataGridView to refresh its Cell values
I have a virtual DataGridView that has a data cache behind it.Sometimes I update the values in the cache programatically and I want to be able to tell the DataGridView to refresh the cells. That is,...
View ArticleCells in DataGridView cannot edit
I use Visual Studio 2005 and create a simple Windows application. I created a DataGridView with 2 textbox columns. Databinding is OK, but I cannot edit any cell (no matter I press F2, or click the...
View ArticleCreate a graph and a report from same dataset in rdlc reports
I have created a winform data entry connected to .accdb as source The entry part is done, and i have given a button to open another which must contain the summary of the data in table & in graph...
View Article[Announcement] "Windows Forms Data Controls and Databinding" Forum will be...
This "Windows Forms Data Controls and Databinding" Forum will be migrated to a new home onMicrosoft Q&A!We've listened to your feedback on how we can enhance the forum experience. Microsoft Q&A...
View Articleloop two related datagridviews
Dear expertsI have 3 tables cbjmain,cbjdetail,rp_link there relations are as underds.Relations.Add("relation1", ds.Tables["cbjMain"].Columns["ui"], ds.Tables["cbjDetail"].Columns["cbjMainUI"], false);...
View ArticleComboBox Binding with a Blank Selected Index Initially???
I'm making a search engine windows app that contains ComboBoxes that are bound to my SQL Server database. It would be so much better that once my ComboBox is bound that I could have no item selected...
View ArticleHow To get Missing Rows
Dear experts,var result = (from p in excel2table.AsEnumerable() join v in LinkedBills.AsEnumerable() //This is how you join by multiple values on new { no = p.Field<string>("doc_no") } equals new...
View Articleerror in datagridview
Dear all , In my data-grid view for one column called "Next calibration" i am using below code to highlight the cell if the date is over( compared to today) . private void...
View ArticleHOW TO MULTIPLY DATA FROM DATABASE
Hi, may I know how to get data from database and do calculation of ITEMS PRICE and TOTAL PRICE with the QUANTITY filled in the text box.
View ArticleDynamic Checkboxes with a eventhandler
Hey! I need some help.. I have created two panels.. One with dynamic checkboxes and one with other dynamic panels in it.. Im trying to create that if dynamic checkbox.check == true. Then it creates a...
View ArticleDisable New Row on DataGrid
Is there any way to disable the ability to create a new row at the bottom of a datagrid? The row marked as "*" appears automatically and I want to disable so I can programatically control inserting of...
View ArticleComboBox Items Not Showing On Dropdown
Hi All, I am inheriting a windows form and modifying it in C#. The parent form has three ComboBoxes and all are populated pragmatically to fit the user’s options. In the parent form, the ComboBox...
View ArticleTB TO LOOK UP LIST ADD TO COLLECTION
Good evening I currently have a code that uses a text ox as look up search from the auto look up collection in TB properties. Currently list box populates lovely,, is there a way I can add the value of...
View ArticleDataGridView.CellClick Event is not firing
I have a datagridview. I want to select a row by click a cell on the datagridview. But it is not firing.private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { // blah blah }...
View ArticleChanging Datagridview Combobox Items Programaticly
Hello there, I am making a Winform application. The form has a datagridview. Datagridview has 6 columns.ID: invisible. I use it to hold line numbers.Description: It will be Text. If this field is left...
View Article