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
5
votes
0 answers

DataMember property 'relation key' cannot be found on the DataSource

I currently have a DataSet that has several tables in it for a C# Windows app. I have one parent table and all of the other tables in this set are child tables that have a relation to the ID column in the parent. I just recently added a new table…
5
votes
1 answer

What are Delphi / AppMethod BindSourceDB Scope Mappings and how do I use them?

I am using Delphi/AppMethod XE6, and adding a Firemonkey Mobile HD form to a blank project. On the form, I've dropped a BindSourceDB component and am viewing it in the Structure Window, There, I can see a ScopeMappings child property. I can also…
user3625874
5
votes
1 answer

ResetBindings() does not update BindingSource

I have problem updating DataSource of a DataGridView in WindowsForms application. I have DataGridView populated by data in List of my own class Skoleni. private List setrideneSkoleni; //list of objects In MainForm() method, I call…
Zbynek
  • 5,673
  • 6
  • 30
  • 52
5
votes
2 answers

Why Browsable attribute makes property not bindable?

I'm trying to use System.Windows.Forms.PropertyGrid. To make a property not visible in this grid one should use BrowsableAttribute set to false. But adding this attribute makes the property not bindable. Example: Create a new Windows Forms project,…
bodziec
  • 574
  • 1
  • 6
  • 23
5
votes
2 answers

DataGridView Filtering Using BindingSource (Of CustomClassObjects)

I want to filter through my DataGridView data. My DataGridView's DataSource is bound to a BindingSource. The BindingSource contains a list of objects from my clsBillHeader class. Here is the first bit of code: Dim bSource As New…
Alex
  • 4,821
  • 16
  • 65
  • 106
5
votes
2 answers

datagridview binding source filter

I am trying to filter Data out of a BindingSource - but it doesnt work. What am i doing wrong? I have reduced my Code to a minimalistic example. The Problem is, if i type something in the TextBox - nothing happens. public partial class Form1 :…
Blindsurfer
  • 363
  • 1
  • 3
  • 9
5
votes
1 answer

Undoing All Changes Since BindingSource's last EndEdit call

Here's the scenario (which uses a BindingSource bound to a DataTable within a DataSet): A user creates a new address book contact, fills in the First and Last name in data-bound controls. He presses Apply, whose event handler…
Dov
  • 15,530
  • 13
  • 76
  • 177
5
votes
1 answer

Bind DataGridTextColumn Visibility Property in WPF

I have a datagrid whose ItemsSource binds to a CollectionViewSource. In each column I specify the Path property of the binding to get the specific information to display. What I'd like to do is toggle some of the columns with a checkbox if the user…
KyleMit
  • 30,350
  • 66
  • 462
  • 664
5
votes
1 answer

How to sort a DataGridView that is bound to a collection of custom objects?

So I have been following this guide for data binding on Windows Forms controls (MAD props to the author, this guide is great), and I have used this to create a custom class and bind a DataGridView to a collection of this class: class…
Abion47
  • 22,211
  • 4
  • 65
  • 88
4
votes
1 answer

Entity Framework: C# Winforms bindingsource delete on datagridview, but tag isDeleted field as true only (not delete)

I am currently working on a C# Winforms application with Entity Framework 5. My problem is how to do a delete (which only tag isDeleted field as true) to an item on the bindingsource binded to an entity. This is a screenshot of my form: The…
Henry
  • 195
  • 1
  • 16
4
votes
3 answers

Using BindingSource is very slow?

I have a C# Windows Forms project with a Form containing 2 ListBoxes and a button. On FormLoad the left ListBox is filled with a list (about 1800 items) containing information about Securities (ID and Name) and when the user clicks on the button all…
nogola
  • 214
  • 4
  • 12
4
votes
0 answers

BindingSource.Current VS BindingSource.CurrencyManager.Current

What's the difference in using BindingSource.Current VS BindingSource.CurrencyManager.Current? Thanks.
4
votes
1 answer

Filter an integer using Like in BindingSoure.Filter or DataView.RowFilter

I've Trying to filter a DataView which have multiple columns where some is numerical values. Everything works perfectly when typing in a string but once a numerical value gets entered (like checking for courier #) it filters to nothing. How My Data…
sgtBlueBird
  • 157
  • 3
  • 12
4
votes
2 answers

Filter a BindingSource based on the rows of another DataGridView

I have two DataGridViews in Winforms. DataGrid1 is connected to a table that contains a list of jobs that need to be completed. Once someone completes a job, it's entered into a separate table as completed, which is connected to DataGrid2. I need…
4
votes
6 answers

Applying a filter to a BindingSource, but it doesn't work

I have a TextBox, in which I put a phrase, which is either the description of a task or the id of a task. I want to filter a list using the text from this TextBox. But when I put text into this TextBox, filtering doesn't work, and the collection in…
user278618
  • 19,306
  • 42
  • 126
  • 196
1 2
3
45 46