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

Automatic Refresh DataSet - Windows From C#

Hi all,i'm very noob with C# and visual studio and i'm trying to create a windows form that pick data from an SQL database and show it. The problem is that my database receives continually data  from...

View Article


Need help with non-bound forms

OK.. not really sure how to ask this so I will explain what I'm trying and hopefully get an answer.I am writing an application that will allow me to move and/or update data.  This will be a large...

View Article


How to convert a database float to double

Helloi hope I'm in the right forum I'm trying to get a float value out the datbase and caculate that column and then show the answer in a textbox. But what is happing is i get an exception i understand...

View Article

Reference data in the DataSet directly without binding to form objects.

What I am looking for, is a way to dynamically reference data in a DataSet.   I want to do this without binding to any controls.  I used to do this all the time in VB6 (I almost never bound controls),...

View Article

error In the codes to enter data through form

Dear AllDim cn As New OleDbConnection Dim cmd As New OleDbCommand Dim sql As String cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.15.0;data source = Sample.accdb" cmd.Connection = cn cn.Open()...

View Article


how to add sum of total column of a grid view to a textbox control in a form

HiI am beginner in c#, I have  the following column in a gridviewitem, qty, rate, total. The total of each row should be added to a  another textbox   in a form  to get net total. The following is my...

View Article

Image may be NSFW.
Clik here to view.

Import Bulk of Excel data's to SQL Database using button control...

Hi Everyone,      I developed 1 windows application,now I would like to import all the employee data's to database itseems..I don't want to add each & every employee...I've all the employee details...

View Article

AutoComplete and more than one column shown

I am making a textBox with autocomplete. I use a sql read from a DB for both the name and ID.The textBox shows all the table info and works well. Now when I select a name I want it to get the ID (for...

View Article


DataGridView doesn't keep column order

I have a DataGridView on my form that I bind to a BindingSource, which in turn is bound to BindingList<MyStruct>.MyStruct is a custom struct with three public properties (say A, B, C).I set up...

View Article


getting error in sql string with union

Dear all I want to insert data in two tables and made a sql string with insert statement for each table and want to use UNION to insert data to two tables at a time but I am getting syntax error in...

View Article

setting an Image column in a datagrid view based on a value in the database c#

Hi guys, I have a datagridview which has a image column, I need to set this image based on a value in a database table.  For instance if the field in the table is "laptop" the column will display image...

View Article

ListView control data to be stored until finally saved by Entity Framework

Hi All,I have a scenario in my project. I'm using Entity Framework 4 with Asp.Net, C#.Problem statement:There are several sections and relations among tables. The gets populated and saved in one go....

View Article

Export selected rows to Excel from Datagridview using C# winfroms..

Hi Everyone,  Here am using Datagridview with checkboxes...If I select check boxes and clicks on Export button only Headers were exporting to Excel sheet not the selected rows..could any one tell me...

View Article


In C#, How can I jump to a cell in a datagridview when the value of that...

Hi guys,Here is my scenario. I have a datargridview which has columns Part Number, Qty, Description and Product type.when I need to enter a new part number, if it doesn't exists already in the dgv, it...

View Article

First entry In database when ID Text box is hidden

Dear allI have created Access database and manually attach to windows form and no records are in database . I want to use insert statement to add data butI want to keep IDTextBox hidden and still my...

View Article


Populating DataGridView ComboBox

I have a DataGridView that has a ComboBox column. I'm trying to figure out how to populate the ComboBox dropdown list at runtime. I know I can fill it at design to by editing the DataGridView columns....

View Article

DataGridView, how to capture a cell's KeyPress event...

Hello all,   I am trying to implement an event handler for the KeyPress event for a cell within a DataGridView control. The obvous starting point from the DataGridView keypress event, but this doesn't...

View Article


How to Change the element to in this list and change the Values...

I need to get the checked rows values and print them (2 rows per page sequentially ordered like in the gridview) till print all checked rows it works fine in this code below but I need to load this...

View Article

rows number returned by OleDbCommand

gggggI have a dbf file- bill.dbf .name, endDate, value-------------------------- john,1/2/2010,25 boni,1/3/2010,75 john,8/4/2009,35 boni,2/2/2010,10 dany,12/2/2009,95 I created a query that give me the...

View Article

Value of type 'String' cannot be converted to 'System.Windows.Forms.Control'.

Hi,I am getting error at ActiveX grid controlChild.EnableControl(grd.Text, False)  Public Sub EnableControl(ByVal ctlItem As Control, ByVal blnEnabled As Boolean, Optional ByVal lblitem As Label =...

View Article
Browsing all 2535 articles
Browse latest View live


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