bindingsource Questions

5

I have a UserControl with multiple fields that I would like to have bound to a BindingSource. I would also like the UserControl to expose some BindingSource property so that it can be dropped on a ...
Transvalue asked 11/6, 2009 at 17:9

7

Solved

Are there any known issues when databinding to a control's visible property? The control is always NOT visible regardless of what my property is. Public ReadOnly Property IsRibbonCategory() As Bool...
Whitney asked 8/4, 2009 at 16:21

5

Solved

I have a simple project with Entity Framework, I have a DataGridView in my Form and I set its AllowUserToAddRow property to true but still I can not add new rows into it. And here is my code: DBE...
Dactyl asked 3/8, 2012 at 16:26

4

I am using a bindingsource in my windows forms application to populate some textboxes etc in my view. Binding works OK but how can I unsubscribe my bindingSource from from my object? bindingSource...
Quigley asked 29/6, 2011 at 15:30

3

Solved

Using datagridview bound to BindingSource control bound to a LINQ to SQL class, I wonder how to position the bindingSource to a specific record, that is, when I type a Product name in a t...

3

Solved

I've got a BindingSource with a BindingList<Foo> attached as the data source. I'd like to work with the BindingSource's Find method to look up an element. However, a NotSupportedException is ...
Metonymy asked 13/6, 2012 at 14:12

3

Solved

If I turn off automatic updating of a binding data source by setting DataSourceUpdateMode = Never and then use a button to update the whole lot (using binding.WriteValue), a problem occurs - Namely...
Latency asked 28/10, 2009 at 16:43

3

Solved

Goal: Once clicking on add or delete button, the datagridview should be refreshed with the latest data from document. Problem: The datagridview can't be refreshed after making changes by dele...
Enochenol asked 14/3, 2011 at 20:18

6

Solved

I have a BindingSource that I'm using in winforms data binding and I'd like to have some sort of prompt for when the user attempts to close the form after they've made changes to the data. A sort o...
Ascanius asked 10/3, 2010 at 19:24

3

Solved

We are binding a DataGridview using BindingSource. So in the main thread we have given like this. class1BindingSource = new BindingSource(); class1BindingSource.DataSource = class1List; this.d...

2

Solved

I have a capture form for a Works Order, and it has a CustomerBindingSource and a WorksOrderBindingSource control. Most edit fields are bound to the WorksOrderBindingSource, with a ComboBox whose l...
Kingcraft asked 27/9, 2012 at 6:28

2

Solved

What gives me using something like this: DataGridView dgvDocuments = new DataGridView(); BindingSource bindingSource = new BindingSource(); DataTable dtDocuments; dtDocuments = MsSQL.GetDocuments...
Myungmyxedema asked 31/1, 2017 at 11:54

4

Solved

I want to display a custom collection in a DataGridView in a Windows Forms app. This custom collection implements ICollection, and IEnumerable. I have set up a BindingSource, using the collection a...
Singultus asked 28/1, 2013 at 21:20

1

Solved

I have a: someBindingSource.DataSource = someDataSource; And I also do: someDataSource = foo(); foo() does new for another data source with different data. I don't think it's correct to do t...
Marcello asked 18/9, 2016 at 12:0

5

Solved

I'm trying to create a DataGridTableStyle object so that I can control the column widths of a DataGrid. I've created a BindingSource object bound to a List. Actually it's bound to an anonymous type...

0

I have a simple DTO class which I set as the datasource of a bindingsource on a form. The form contains a custom control with a Value property. This is the property: [Browsable(false)] [Bindable(...
Veneer asked 11/3, 2016 at 13:57

2

Solved

I have read from a excel sheet and wrote this for a BindingList, in Form_Load() this is set to a DataSource as BindingSource: bd = new BindingSource(); //instance of BindingSource bd.DataSource = E...
Lorrainelorrayne asked 22/2, 2016 at 17:45

1

Solved

I have a small demo WinForms app. One of the Forms is my Add New Person form. I used the Details View instead of the DataGridView from my Data Sources. When I enter data and click the save button o...
Rodin asked 14/12, 2015 at 15:25

1

Solved

I have a class, say Person, with an Id and a name. This class properly implements INotifyPropertyChanged Addition: some people asked for class Person. My real problem is a more elaborate class, I...
Melosa asked 1/10, 2015 at 10:43

3

Solved

I think I understand well enough what the BindingSource class does - i.e. provide a layer of indirection between a data source and a UI control. It implements the IBindingList interface and therefo...
Ladonna asked 15/6, 2010 at 4:17

2

Solved

Question What is the difference between setting a [...].DataSource to an instance of an object vs. the type of a class? I have seen both methods in use in our codebase, and I'm trying to wrap my h...
Sulph asked 18/8, 2014 at 17:25

3

I can directly bind my DataGridView control to a bindinglist of my business objects by setting the DataSource property. My business object implements INotifyPropertyChanged, so the DGV gets updated...
Planking asked 22/4, 2012 at 9:0

2

I'm getting the following message when I try to remove the last item in a datagridview. DataBinding cannot find a row in the list that is suitable for all bindings. I have my binding setup as ...
Granulate asked 29/4, 2009 at 21:46

6

I can't quite work out how to allow a DataGridView populated at runtime to sort (when users click on the column headers) where a LINQ from XML query is the DataSource, via a BindingSource. Dim Qu...
Greenling asked 28/1, 2009 at 14:44

1

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 ...
Ess asked 27/6, 2012 at 23:20

© 2022 - 2024 — McMap. All rights reserved.