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
3 answers

BindingSource.Filter crashing (injection)

So I have some simple code: source.Filter = "n LIKE '%" + txtSearch.Text + "%'"; Source being a BindingSource object. txtSearch being a TextBox. What is the proper method to make sure it will always consider the contents of txtSearch.Text as a…
Matty
  • 155
  • 1
  • 1
  • 7
0
votes
1 answer

Bindingsource datagridview click fill data in textbox

I have a datagridview which is bind from a bindingsource I really try to find out how onclick row on datagridview the row data fill in the TextBox. Because I want to show some data on combobox according selection on datagridview. My code for bind…
Abhishek
  • 299
  • 2
  • 5
  • 18
0
votes
1 answer

Combobox with dataset and bindingsource. What am I doing wrong?

I have a datagridview and combobox on a form. I wish to move between rows of datagridview and combobox should be synchronized with the value of one of the columns of the dataset datagridview. In combobox I have a list with two possible values​​,…
Sammy Davis
  • 117
  • 4
  • 13
0
votes
1 answer

Datagridview textchange event fire two times

I am using bindingsource on my windows form Where user when fill in principal amount according to his installment i calculate his monthly amount .But problem is that when fill the amount my text change event fire two times and second time principal…
Abhishek
  • 299
  • 2
  • 5
  • 18
0
votes
3 answers

Item cannot be added to a read-only or fixed-size list

I am using bindingsource . The problem is that when i do AddNew() in binding source then it give me the exception Item cannot be added to a read-only or fixed-size list. This form is Dialog. For your review i am adding the code Main Form Code…
A.Goutam
  • 3,422
  • 9
  • 42
  • 90
0
votes
1 answer

Re-order records in gridview/bindingsource

I am using Telerik's WinForms controls and have a radGridView which is bound to a bindingsource to display my data. I would like to expand on the functionality of this a bit to give users an extra way to order the records. I have added two command…
Sesame
  • 3,370
  • 18
  • 50
  • 75
0
votes
1 answer

How to clear the added rows from a datagridview binded using a BindingSource c# .net

Its a Windows Form Application. Database is MS Access. Using Typed DataSet. I am having a datagridview, which i only use to insert data into database. I want to clear all the rows added as soon as I click on Reset Button on my form. The…
0
votes
1 answer

BindingSource.Filter ignoring one of my conditions

I have a BindingSource filter with multiple conditions. The reason for that is so I could have a single search_textbox to find a specific record... I have one problem though, I have a slightly more permanent condition"Status LIKE '{0}' AND...", but…
0
votes
1 answer

Bind Combobox form LIST<> in datagirdview

How can i bind the combobox with LIST<> in datagridview . For Binding the 'Combobox' Here i am directly assign the value in binding source . programEntityBindingSource.DataSource = _Usercom.GetProgramName(); How can i do this
Abhishek
  • 299
  • 2
  • 5
  • 18
0
votes
1 answer

DataGridView : How to update a record to database after edit

I am using a DataGridView connecting to a database via BindingSource and DataSet. I hope that when a user finishing editing a row and leaving the row, the program can update the current row to database. Where can I place my update code? (in which…
Willard
  • 43
  • 4
0
votes
1 answer

binding textbox to object property via bindingsource not refreshing

The objective here to is use BindingSource + Object as a DataSource and a TextBox to display property value of the object. The problem that i am facing, is that the TextBox is not reflecting the property values changes of the underlying object. As…
Yiorgos
  • 151
  • 1
  • 11
0
votes
7 answers

Refreshing BindingSource after insert (Linq To SQL)

I have a grid bound to a BindingSource which is bound to DataContext table, like this: myBindingSource.DataSource = myDataContext.MyTable; myGrid.DataSource = myBindingSource; I couldn't refresh BindingSource after insert. This didn't…
dstr
  • 8,362
  • 12
  • 66
  • 106
0
votes
1 answer

PropertyChanged Event, raise when OnClick?

I have a WinForms application with some business objects which implement INotifyPropertyChanged and hook the PropertyChanged event via some controls & BindingSource on the form which raises an event back to my business objects layer... There's just…
dferraro
  • 6,357
  • 11
  • 46
  • 69
0
votes
3 answers

Data Binding from Binding source

In my C# WinForm, I have a binding source and data grid view. On the Form_Load event; _bsCompany = new BindingSource(); _listOfCompany = CompanyService.GetListCompany();//Gets a listofCompany _bsCompany.DataSource =…
Irshad
  • 3,071
  • 5
  • 30
  • 51
0
votes
1 answer

VB.NET BindingSource cannot be its own data source ... error in a datagridview

I'm trying to make a search inside a datagridview, looping through every cell and comparing 2 strings - SearchString and CellString. I divide the work into four threads (by giving each thread a different quater of the rows to work with) that work in…