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

DataGridView table

Hi all i use a data-grid view table in the form.Once i enter the data first time ,it's ok,but then i try to modify certain row and then i exit the form,form gets updated and duplicate result on the top...

View Article


How to have custom control in DataGridView display object's value?

I have a sample project located here The project has a main form `Form1` where the user can enter customers in a datagridview. The `CustomerType` column is a custom control and when the user clicks the...

View Article


Databinding question

I would like to bind a textbox or two to a combobox and xml file. The combobox is binded to an xml file. What I would like to do with those bindings is, get the corresponding data from the combobox and...

View Article

Changing DataColumn DataType in the same DataTable

hi,I have following requirement.In a DataTable, I have a DataColumn with String as DataType (This has dateTime data in String format). I want to change this DataType to DateTimeStamp and then sort it...

View Article

How to get selected value of combobox filled by entityframework 6

Hi all, I filled my combobox by calling stored procedure using EF6, now when I want to get the selected value an exception occurred saying Input string was not in a correct format. So the selected...

View Article


Concurrency conflict causes troubles in displaying a row in a DataGridView

Hi,I’ve got a DataGridView.When a user selects a row and clicks Delete button the row has to be deleted from the database. Actually I’ve got it working now.On UserDeletingRow event of the DataGridView...

View Article

Need a DataGridView Custom Column of Type ListView or CheckedListBox

I am attempting to write a new DataGridView custom column type based on the samples I have found so far but cannot get a ListView or CheckListBox to work correctly. One issue is that the list needs to...

View Article

Image may be NSFW.
Clik here to view.

Add columns to datagridview

Hello everyone I use vb.net with excel i have a button "get the name of the columns" which give me the name of the columns of the sheet that i opened  this button with combobox , when i select an item...

View Article


how send all list items in listbox to access database in c#

Hi friends, I'm trying to send all data in my listboxBut in my Database shows as...

View Article


how do i Auto refresh a datagridview

i have a small app that tells uses how many customers are waiting for them and what time they arrived but i cant think how i could get the view to refresh itself after say 15 seconds,cheers steve j

View Article

Insert a Combobox ValueMember to database

I need to insert a record to another table with the FK ID taken from another table.  For example, the end user needs to create a unique product which is made up from various components from other...

View Article

DataGridView binding error: Class does not exist in Namespace.Namespace?

My error in my C# project:Error5The type name 'Task' does not exist in the type 'MediaSnatch.MediaSnatch' Y:\...\MediaSnatch_Home.Designer.cs 71468MediaSnatch I am attempting to bind the class Task to...

View Article

uppdates dont work

cant uppdate, the computer freezez...

View Article


How to remove all rows in a DataGridView

I have a DataGridView that takes data from a textbox that user inputs. Then, a button that lets user save all rows to database. After saving, I want to remove all rows in the DataGridView. However, the...

View Article

Datagridview RowEnter Problem

Hi,I am using the DataGridView NewRow to allow the user to create a new database record. The DataGridView's StandardTab property is set to 'false' so the default Tab action is to move from cell to...

View Article


Enhance ComboBox Drop-Down List Selection

I have a Combo-Box (cboPayors) that is loaded in ascending sequence on my windows form. I like the fact that when you type a character, it positions at the first item in the list beginning with that...

View Article

Take direct data grid selected by the mouse

How can Igetinformationselectedplotonly indatagridor equivalent

View Article


DateTimePicker and DataBinding

I've set my DateTimePicker's text property bound to a DateTime field in my Access Table ( because it gave me error if I bound the value property instead). When adding a new record from my form, I...

View Article

ComboBox displayed item change?

Background:In a windows form I have a combox, cboPayor, with the following properties set to:AutoCompleteMode = SuggestAppendAutoCompleteSource = ListItemsDropDownStype = DropDownListSorted =...

View Article

Two way databidning in windows form c#

i was reading an article on two way data binding in winform and i tested their code which works fine. i was not aware about two way data binding in winform. here is article...

View Article
Browsing all 2535 articles
Browse latest View live


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