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