Quantcast
Channel: Windows Forms Data Controls and Databinding forum

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 Article


Windows 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 Article


C# 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 Article

May 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 Article

How 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


Forcing 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 Article

Cells 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 Article

Image may be NSFW.
Clik here to view.

Create 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 Article


loop 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 Article

ComboBox 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 Article

How 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 Article

Image may be NSFW.
Clik here to view.

error 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 Article


HOW 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 Article

Dynamic 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 Article


Disable 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 Article

ComboBox 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 Article


TB 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 Article

DataGridView.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 Article

Changing 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