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

Bringing in a datatable in the proper order.

I have a data table in which I do foreach(datarow row in datatable.select("Item > 5")){ }I would like all the rows in the selected table to show in the order it is in the table is that possible?I...

View Article


Adding data to a project !

Hi guys!I am new to Visual Studio and have been set the task to create a Windows Form Application for a fake Toy store as my assignment.It is a Stock inventory system with live data that you can...

View Article


Binding Combo Boxes

I have a windows forms program linked to an Access dB for an Inventory Management system.The dB has Tables for Suppliers - SupId, SupName, ...Inventory - InvId, SupId, InvCode, InvDesc, InvSize,...Size...

View Article

Binding to textbox and updating source table

So, I have a form, containing several textboxes.When a user click elsewhere on the form, the texboxes are bound/populated with values from a single record. (Parent-child)However, where I am struggling,...

View Article

Open and close connection when there is a fill()

Below is the code used to get data from sql into visual studio:   publicstaticDataTable GetData(string selectCommand,DataTable datatable)        {           datatable.Clear();           SqlConnection...

View Article


check if there are empty cells in datagridview

I want to get all data from my datagridview and save into my database.But before saving into database I must check if there is an empty cell then must show an alert message and after all cells will be...

View Article

DataGridView.CancelEdit() doesn’t.

p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';} @page Section1 {size:612.0pt 792.0pt;margin:70.85pt 70.85pt 70.85pt...

View Article

DataSet Default Values

Is DataSet designed to retrieve default values from SQL Server and apply them to the appropriate columns in the DataTable?If not, does anyone know a way to accomplish this?

View Article


I'm using datagridview1_CellBeginEdit or CellEndEdit event. Is there similar...

I need to trigger a datagrid1_CellBeginEdit/CellEndEdit event only once when I'm editing or entering data in the current row.  Instead of events I want a separate routine or maybe like...

View Article


C# DataGridView: First row is being selected by default

Hai All, I have a WinForm which is having several tabs placed on it and one of the tab is having a DataGridView control which is ReadOnly always. The main problems is, datagridview control will select...

View Article

Unable to insert Image to Access Database Through Picture Box

Dear All In my windows form application I am unable to insert and retrieve photo in Picture box.using my openfiledialog1 I can able to bring photo to picture box.Access database column name is photoand...

View Article

DataGridView: Is there a way to check if cell exists in datagridviewrow.Cell...

Looking for something like:if(CurrentlyModifiedRow.Cells.Contains(columnName))BK

View Article

using data from dataGrid

Hello, i am new to visual studio and C# programming and i am having some problems.I have made a windows form in visual studio(C#). I made a dataGridView witch displays data from a table in AX2012 (sql...

View Article


Image may be NSFW.
Clik here to view.

No value given to one or more required parameter.

Dear All In my window application I want to update the field/column.my codes are Try Dim cb As New OleDb.OleDbCommandBuilder(da) i = CInt(AdmissionIDLabel1.Text) Dim linenum As Integer =...

View Article

Help! "Concurrency violation: the UpdateCommand affected 0 of the expected 1...

Help! I have a Access 2003 Database that holds info like "customer name" "phone number" etc. When I enter that info and then click new record then go back to the previously created record and add some...

View Article


Forcing a DataGridView to update values

I've got a datagridview (winforms) controls with a collection bound to it.  Anyway, I've got a checkbox column in the grid.  I need its value to be updated to the object as soon when the column value...

View Article

DataGridView ComputeVisibleColumn NullReferenceException

Sometimes when I make a change to the datagridview - such as delete a column, or rename a column header, or acceptchanges on the underlying data table I get a Null Reference exception.  The stack trace...

View Article


C# Send Email to DataGridView Row

Hi,I have limited time. I want to send email to datagridview data. In my form, there are two button and a datagridview. One button for pull data from database. I want to send mail pulling data. I...

View Article

NumericUpDown and databinding

I think this is an issue with the numericUpDown control. I am using .net3.0.Here is the problem. If you run the code below you will have a form with numericUpDown and a text box. Put a break point on...

View Article

Bitlocker exception inquiry

Is there a way to have Bitlocker enabled on a PC, have the HD encrypted and configure Bitlocker to encrypt any Storage device connected to the computer but make an exception for a specific hardware...

View Article
Browsing all 2535 articles
Browse latest View live


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