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
-1
votes
1 answer

what is the best way to found memory leaks in windows form application?

I am using windows form application with binding source. I have initialized the binding source as below code in form InitializeComponenet() method. Can I know the below code is correct? private System.Windows.Forms.BindingSource…
Jagadeesan
  • 233
  • 1
  • 13
-1
votes
1 answer

Cross-thread mistakes

I can't explain this with my own words, so here's the situation: myBindingSource.Add(new myElement()); SetDataSource(myBindingSource); myBindingSource.Add(new myElement()); I always catch an exception (a cross-thread exception) on the second call…
devgianlu
  • 1,547
  • 13
  • 25
-1
votes
1 answer

Delete record in database with bindingnavigator

Hi I navigate with a bindingnavigator threw a datagridview. this datagridview is connected with a database. If I want to delete a row on the datagridview then it deletes it perfectly, But the row in the database stays. private void…
Sjemmie
  • 1,249
  • 8
  • 26
  • 31
-1
votes
1 answer

c# how the make datagridview.selectRow = bindingsource.position?

how the make datagridview.selectRow = bindingsource.position?? sorry, i have no idea. the datagridview' rowindex is not equals to the bindingsource' position. it is because i have set a relation of the bindingsource. any one have suggestion?
LK Yeung
  • 3,462
  • 5
  • 26
  • 39
-2
votes
2 answers

Binding Source NOT reflecting new/removed Row when List datasource adds/removes item

So I tried using both BindingList and BindingSource, but the issue is the same with both. Just for some background: I have a application where I receive updates on trading objects from an api. I receive real time the updates from the api (Can be an…
xSquared
  • 53
  • 2
  • 6
-4
votes
3 answers

Index i is either negative or above row count in BindingSource c#

When i Invoke the Event , it throws an error like Index (int)i either negative or above row count. What can i do.. . public void UserDeletingEvent (object sender, EventArg e) { BindingSource.RemoveAt(e.row.index); }
Pikachu
  • 27
  • 1
  • 6
-4
votes
3 answers

c# data reader change field name before Binding

I have SqlDataReader that fill with ExecuteDataReader statement. I want to change some column name in DataReader after fill. for example after fill datareader i have two column (A,B) i want to change colum 'A' to 'a'(convert to lowercase)befor…
abianari
  • 343
  • 7
  • 19
1 2 3
45
46