Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Browsing all 2535 articles
Browse latest View live

Passing data from one form's grid view to another forms text box

Hello expert,Good day. I m designing a windows application with c# and sqlserver . In this application I need to pass data from One forms grid view to another form text box by applying dialogue box...

View Article


Filter Datagridview Without Datasource having 1 lackh rows

Hello,I am having datagridview with one string column and around 1 lackh rows where Datasource is null, I want to filter datagridview based on textbox text change event but it is taking time to filter...

View Article


WebBrowser control and HttpRequest

Hi,I am trying to automate a file download from one of the applications (it's an Java application).I am able to reach till download link using web-browser control. Since the downlaod link opens up a...

View Article

Image may be NSFW.
Clik here to view.

C# Winform import Excel file to datagridview

I'm looking for a simple Excel program to import Excel Using OleDb or other. The code I have below is getting an error.Object reference not set to an instance of an object. Any examples would be...

View Article

checkbox not working the way I want

HII added a checkbox to my form that toggles between the form staying at topmost or not.Problem is it doesn't deactivate when I uncheck the checkbox? private void OnTopbox_CheckedChanged(object sender,...

View Article


How to turn off "AutoGenerate" of columns when a DataGridView is data-bound

I have a Windows form that has a DataGridView on it.  I have bound the DataGridView to show data, that I specifed,  from the database (I defined the cells that I want to see through the property page)....

View Article

c# Winform DataGrid copy to end Column

I have a Datagrid with formulas, I want the formula to go to the end of the column. Currently it does the first cell of each column. private void button2_Click(object sender, EventArgs e) { //Part...

View Article

What is the RGB value of the color blue used to highlight selected items in a...

What is the RGB value of the color blue used to highlight selected items in a WinForms ListView?  I have seen a few suggestions online but nothing that is the exact color.Rob E.

View Article


unbound datagridview send the data to a sql table

HiI have a datagridview filled with excel data, unbound to the table I want the data in. (see previous entry for that code).  Now I have a table with all the fields match integer, float, string.  I...

View Article


3-tier WinForms C# Datagrid. Having trouble filling the grid with values from...

Hi!I'm currently trying to fill my datagridview with values from different queries.I've started to try and add the result from one query to a specific column. Problem is that since i haven't had much...

View Article

bound datagridview sbut empty fill with Excel data

HiI have a linq context to load an empty table into datagridview1.I'm trying unsuccessfully to load my excel data into that datagridview.the excel comes over to the a unbound table but not this bound...

View Article

Image may be NSFW.
Clik here to view.

Decimal charterer too many decimal spaces

I am getting too many decimal spaces, I only want to see 2 decimal spaces, example (0.67) and (0.04)This is code.Thank you//Linear FT Stack =Q2/12 Decimal Q = Convert.ToInt32(rows.Cells[16].Value ??...

View Article

How can I save all the data I typed in datagridview to ms access database? Is...

I just want to save all the data I type in datagridview to make it easier for the user. I'm trying to create a scheduler. Please help me, this is a project due next week :(

View Article


DataGridViewComboBoxColumn ignores DataSource string array

With VS2012, created DataGridView with six DataGridViewTextBoxColumn, all read only, all work fine.Added seventh column in VS2012 designer as DataGridViewComboBoxColumn, not read only.Set DataSource in...

View Article

Dropdown/ComboBox Column Header Cell

How do I create a combobox column header cell that will allow the user to choose the name of the column.  I dont want autofilter or I would use the existing code on MSDN. I want a combobox or button...

View Article


c# winform if datagrid cell equals Bob next datagrid cell returns Male

I hope I can explain this simply, I have  a Datagrid with several columns. I want to write, if this column [2] has Bob in it than column [3] returns Male. The Excel formula would look like this =IF (Y2...

View Article

DataGridView reset column width

Hi allin a WinForm I have a Datagridview.The user can change width  for each columnIs there a statment to reset column widths in the way when the form was loaded ?

View Article


Replace one character after the cursor position when pressing a number key...

Please help me, I'm having problems when using the MaskedTextBoxin winform.I built a class to format dates,I want to when I enter a number then will replace some behind the cursor.When I press a number...

View Article

Visual Studio 2017 and Mysql Datasource - Unexpected error and Could not...

HiI am using Visual Studio 2017 Community with MYSQL. I want to make windows form to update,delete records...etc.When i use a datagridview and try to add datasource, at the very end it fails with these...

View Article

Image may be NSFW.
Clik here to view.

C# rounding up or down in

How would I change this to round up or down ?I have tried everything but the correct one.Double, convert to double TrypharseThanks //= AN2 * AO2 decimal AN2 = Convert.ToDecimal(rows.Cells[39].Value ??...

View Article
Browsing all 2535 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>