Questions tagged [bindingsource]

BindingSource is a .NET class that encapsulates the data source of a Windows form.

BindingSource is a .NET class that encapsulates the data source of a Windows form. A rough equivalent in the Java standard API might be RowSet.

682 questions
0
votes
1 answer

DateTimePicker BindingSource NULL if not manually changed

I have a problem with DateTimePicker and bindingsource. When I add a new record without change Date from DateTimePicker the bindingsource set the date as null therefore problem occurs in my database The databinding code…
kon apaz
  • 78
  • 2
  • 9
0
votes
3 answers

DataGridView / DataTable | rowState doesn't change

I'm having a problem with binding data to the DataGridView. I have a class MyDataGridView that inherit from DataGridView. My data grid view data source is a BindingSource object that holds a DataTable as the data source. Problem is, when I make…
gavra
  • 93
  • 1
  • 2
  • 11
0
votes
1 answer

How to update a BindingSource based on a modified DataContext

In my application, I extract the Data of a Linq To SQL DataContext into a dictionary for easy use like so: Jobs = dbc.Jobs.ToDictionary(j => j.Id, j => j); Then I bind this dictionary to a BindingSource: bsJob.DataSource =…
Michael Klement
  • 3,376
  • 3
  • 30
  • 34
0
votes
1 answer

Combobox newly selected item event not functioning correctly C#

I have a combobox which is populated by a binding source. I'm trying to get my program to do the following, when the selection is changed it carries out the following…
mjsey
  • 1,938
  • 5
  • 18
  • 28
0
votes
1 answer

Insert To Database Table With Bindingsource / DataAdapter / Dataset (Vb.NET)

Condition : I have 2 tables HISTORY1 and HISTORY2, those tables has the same columns but different data. And i'm using these code below to retrieve data from database to bindingsource dim da =new sqldataadapter dim ds =new dataset dim bs =new…
Arvid Theodorus
  • 443
  • 2
  • 9
  • 20
0
votes
2 answers

Refresh and Select Parent Form's Databound Combobox after Edits of Child Form

I am trying to update a SQL databound combobox with new information from a new form. After I make the adds/edits and save on the popup form, I want to refresh the combobox with the new info and select the currently added/edited item. Currently, the…
Mike
  • 245
  • 1
  • 3
  • 9
0
votes
1 answer

Problems saving child records to database

At first glance I realize this question has been asked many times - and I think I have read/searched many of them - and I have tried very hard to check every suggestion I found - Perhaps I just need another pair of eyes ? The issue is this : I have…
bbaley
  • 199
  • 6
  • 22
0
votes
2 answers

C# getting values from DataTable or BindingSource

I have a labels that need values retreieved from a Database. I am able to query the database but how can I extract values from a DataTable and place them in the appropiate labels Thanks
Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177
0
votes
2 answers

BindingSource.Filter using Inner Join

I am using BindingSource and I want to use some SQL code to perform an Inner Join. My code for this doesn't work ticketsBindingSource.Filter = "SELECT u.CallerName, t.* FROM users u INNER JOIN tickets t ON u.id = t.user WHERE u.CallerName =…
Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177
-1
votes
1 answer

Linked DataGridViews Not Updating

I have 2 pairs of Master-Details (dgvs) datagridviews that are linked together. I also use binding sources for each table. See image. Table Relationships When I click on a row for the Link_Contract_Letting dgv, it updates the Contracts dgv, but does…
-1
votes
1 answer

How to retrieve the data source from a datagridview generated without a binding source C#?

I have a datagridview in my code. And I've added data to the datagridview through my program results.(without a data/binding source) i.e dataGridView1.Rows.Add("var1", "var2", "var3"); How can I bring back the displayed data as data source of that…
-1
votes
2 answers

How to use Where clause with DataSet in C# Win form

I use adgv (advanced filter) to my dataGridView with DataBindingSource computerDataSet is my Dataset computerBindingSource is my BindingSourse and computerTableAdapter is my TableAdapter In my Load form it creats this one to load data from my…
Anna
  • 69
  • 1
  • 10
-1
votes
1 answer

Datatable.getchanges - Which column changed

I have a form in detail view with a binding navigator. When i click next, if there is a change, i get asked if I want to save it. So if I know I didnt change anything and the rowstate is still coming up modified, how can i determine what was…
dk96m
  • 301
  • 3
  • 18
-1
votes
1 answer

How can i filter more than 1 column at datagrid

I use this working code to search from textbox any partial word but just inside one column (Firstname) and return the filtered result inside DataGridView: ContactsTableBindingSource.Filter = String.Format("{0} LIKE '%{1}%'", "Firstname",…
arc95
  • 97
  • 1
  • 8
-1
votes
1 answer

DataGridView DataSource // integer to icon

I've got a list-based application that runs very slow, because each row in my DataGridView is build manually as DataGridViewRow. To fix performance issues i decided to use a DataSource (DataTable) instead. My problem: One column I am recieving from…
Luke
  • 751
  • 2
  • 7
  • 32
1 2 3
45
46