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

text change event on text box using binding source

I have a Textbox in Windows form and i want to do some calculation when user enter value . But Problem is that when my form load the Textbox_TextChange event fire because binding source fill 0 in the text box. So How can i do that . Many thanks
A.Goutam
  • 3,422
  • 9
  • 42
  • 90
0
votes
2 answers

SCOPE_IDENTITY() after TableAdapter Update, using BindingSource

Trying to get the Autoincrement ID of a row after TableAdapter.Update. The data is Binded so there's no row being added to the datatable as in this case. Any ideas on how to solve this? Thank you
Gil
  • 33
  • 1
  • 11
0
votes
1 answer

Datagridview with sorted EntitySet? (.NET 3.5)

I'm hoping there's a simple answer to this one I've missed in hours of Googling... I have a DataGridView which needs to display and add/delete/edit records from a database. I'm using the Entity Framework, so records are initially…
0
votes
1 answer

In winforms with a bindingNavigator bound to an empty datasource - how do I automatically add a record?

am using EF Code first, and have a windows form with a bindingNavigator bound to a datasource. The data entry textboxes are also bound to the datasource I want it to work so that When the user opens the form if there are no records in the data…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
0
votes
1 answer

BindingList becomes null after getting data from BindingSource

private void button_ChangeStatus_Click(object sender, EventArgs e) { foreach (DataGridViewRow item in this.dataGridView1.SelectedRows) { BindingList bindingList = new BindingList(); bindingList =…
user1930824
  • 655
  • 1
  • 5
  • 6
0
votes
1 answer

Winform with text and check boxes bound to bindingsource with datanavigator adding records issue

I'm kinda new to programming with BindingSources and DataNavigators (as well as VB .NET) so here's my question/problem. I'm programming an app in VB 2010 in which users will update data in a SQL 2008 R2 server on the back end. The form in design…
ByerRA
  • 1
  • 2
  • 3
0
votes
1 answer

Using a BindingSource to link a DataSet to a DataGridView, but there's no data

This is my first time working with DataSets and BindingSources, so please be gentle on me. As part of a more complicated reporting system (I've distilled it down to a basic incarnation, but it still won't run correctly), I'm trying to pull data…
MiffTheFox
  • 21,302
  • 14
  • 69
  • 94
0
votes
1 answer

Winforms Textbox bound to bindingsource with currency format and datagridview not refreshing properly

I'm kinda new to programming with bindingsources and datagridviews (as well as VB .NET) so here's my question/problem. I'm programming an app in VB 2010 in which users will update data in a SQL 2008 R2 server on the back end (they won't be adding or…
ByerRA
  • 1
  • 2
  • 3
0
votes
1 answer

Get a Property value in a BindingSource LINQ

Below is my bindingSource. pics_Data_HistoryBSForCounts.DataSource = from dh in dataCtx.Pics_Data_Histories join ui in dataCtx.User_Infos on dh.User_Id equals ui.user_id into ui_dh …
ABCD
  • 897
  • 16
  • 38
0
votes
1 answer

How to Create Report Viewer Binding to Object in VB.NET

I have Class named "User", code: Public Class User Private m_id As String Private m_user_name As String Public Sub New(ByVal id As String, ByVal name As String, ByVal pwd As String) m_id = id m_user_name = name m_pwd…
Eric
  • 248
  • 2
  • 8
  • 21
0
votes
1 answer

BindingSource controls in WinForms - compared to LINQ , ADO.Net, etc?

I'm fairly new to database programming in WinForms, and have been using BindingSource, DataSet, and TableAdapter controls to display data from an Access database in grid and Component One Chart controls. The app is fairly simple right now - the user…
Tom Bushell
  • 5,865
  • 4
  • 45
  • 60
0
votes
1 answer

Updating of BindingSource in WinForms

During my attempts to use DataBinding in Winforms I've encountered with a problem. It looks like after updating of DataSource DataGridView doesn't refresh the data. Can't understand where is a problem. var companies = new List { new Company…
alex.mironov
  • 2,834
  • 6
  • 27
  • 41
0
votes
1 answer

How to Retrieve Object of BindingSource from Dictionary

I have two objects of BindingSource and Dictionary. And BindingSource Object contains the Object of List of Vehicles Class Object and Dictionary Object contains the BindingSource Class Object. And here is the global declaration: Dim bs As…
Eric
  • 248
  • 2
  • 8
  • 21
0
votes
1 answer

C# Updating multi Tables with BindingSource with relations

I have a parent table named "Devis" and its child table named "LigneDevis", I want to insert data into two tables using devisBindingSource and ligneDevisBindingSource, here the Update code : private void devisBindingNavigatorSaveItem_Click(object…
aEk BKF
  • 131
  • 1
  • 2
  • 15
0
votes
1 answer

Are there any known implementations of IBIndingList that support the Find method, suitable for LINQ?

It seems as if only DataSet, DataTable and DataView can be used as sources when you want to use BindingSource.Find. I'm binding IQueryable and IEnumerable to my binding source, but would very much like to enjoy the 'convenience' of the…
ProfK
  • 49,207
  • 121
  • 399
  • 775