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

datagridview combo box column binding issue

I create this datagridview:public void GetOrderDetailsItems() { Orders od = new Orders(); orderItemsDT = od.LoadOrderDetailItemsTable(_ID); Parts part = new Parts(); DataTable partdata = new...

View Article


Decimal number to two decimal places

I have a decimal number that I want rounded to two decimal places.  How do I do that and where should I put it: in the class method or in the form.cs file?

View Article


How can i add DataRowView to a data table row

Hii have one datarowview. I have assigned datagridview.SelectedItem in to it like Dim dgview as datarowview dgview =datagrid.selecteditemNow i want to add this dgview to a datatable as its row.How can...

View Article

datagrid customization

hi, I'm using vs 2013 rite now im doing a project in winforms in that i want to create a dropdownlist box in my datagrid while im adding a new row dynamically and i have already bind the datagrid to a...

View Article

XML root element changes after update from dataset

Please refer here for background information on the program.Hello,I have written a program that updates an XML file with specific values. These values are updated through editable textboxes on 2...

View Article


Combobox value to database sql

Hello,I am trying to pass combobox value to a database, using a 3 tier business logic. Currently my form page looks like this:privatevoidSavebtn_Click(object sender,EventArgs...

View Article

How to: datagridview button navigation + copy data

I have a datagrid which is bound to a database. Ive put a button at the beginning of each row that says EDIT (new DataGridViewButtonColumn). I need some way that when that button is clicked, it opens a...

View Article

I can't understand my problem. I am beginner in C#.

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace...

View Article


combobox string alignment

I use this statement to bind data to a combobox strb.Append("SELECT *,[TAXCODE]+'              |   '+[TAXPROVINCE] AS [DETAILS] FROM [BD_TAXTABLE]");because my TAXCODE can be one or two character long...

View Article


Generate combobox items from datagridview's distinct column values

On runtime I am changing some columns of datagridview into combobox columns. Now how do I get the existing distinct values in the combobox items? I am using entity model as datasource. My code...

View Article

Saving Datagridview Data To Database

Hi,am using odbc to connect to my database and on my form i input data which goes to a datagrid. after which i intend to save the entire collection to my database . the problem is, only the first row...

View Article

Image may be NSFW.
Clik here to view.

SQL From Combobox to texboxes

Hello I have an application with database. In right part of application I write my strings press add key and wirte these strings to LOCAL DATABASE then my Combobox show me which data is allready...

View Article

How can I spare Combobox item's 0?

I want to show a text which inform users for a selection but the condition below spoils that. How can I handle this fact?comboBox1.Items.Insert(0, "Please select any value"); comboBox1.SelectedIndex =...

View Article


Binding data grid view to webmthod

HiI am binding data grid view to a web method as below but no data appears in the grid. Dim ws As myurl.MyWebService = New myurl.MyWebService Dim x = ws.MyWebMethod() Me.DataGridView2.DataSource =...

View Article

Create Text Boxes At Runtime

I am storing values from a table in a List<string> variable type.  I want to iterate the List<string> and for each value create a text box and write the corresponding value to the text box....

View Article


DataGridView - Select row programatically

How can I programatically make a row in a DataGridView selected? The SelectedRows property is read only.

View Article

DataGridView checkbox column value (NET Framework 4)

I have a datagridview with a checkbox clomunn. When checkbox is checked/unchecked the messagebox appears with question "Do you really want to change a value?" If Yes is clicked the checkbox value set...

View Article


Aliasing Data value in DataGridView

I am using single table to fetch values in datagridview. Lets say i have two columns, ComponentName, Speed. In Torque column, i have limit on values like from 1 to 7. So, while fetching i can get...

View Article

Image may be NSFW.
Clik here to view.

How to: when clicking row or cell on datagridview, open new window filled...

Using SQL SERVER express, OleDBDataAdapter, Dataset, DataGridView, I need the user to be able to edit an entire record like this: User must first fill the datagridview by first applying a filter. He...

View Article

Saving DataGridView layout in VB.NET

 Hi, If we have a DataGridView with 4 columns 1, 2, 3 ,4 and the user changes to 1, 4, 2, 3 this "new" order must be kept. Is there a way of saving this information? We also need to keep the users...

View Article
Browsing all 2535 articles
Browse latest View live


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