Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
GeneralRe: Release vs. debug Pin
spif200124-May-04 23:23
spif200124-May-04 23:23 
GeneralRe: Release vs. debug Pin
Dave Kreskowiak25-May-04 2:16
mveDave Kreskowiak25-May-04 2:16 
GeneralRe: Release vs. debug Pin
spif200125-May-04 2:24
spif200125-May-04 2:24 
GeneralRe: Release vs. debug Pin
Heath Stewart25-May-04 3:05
protectorHeath Stewart25-May-04 3:05 
GeneralRe: Release vs. debug Pin
spif200125-May-04 20:39
spif200125-May-04 20:39 
GeneralRe: Release vs. debug Pin
spif200125-May-04 21:18
spif200125-May-04 21:18 
GeneralData Binding a TextBox to a DataSet Pin
woaksie24-May-04 18:49
woaksie24-May-04 18:49 
GeneralRe: Data Binding a TextBox to a DataSet Pin
Heath Stewart25-May-04 2:50
protectorHeath Stewart25-May-04 2:50 
It all depends on how you bind. Notice that the textBox1's DataBindings binds to this.dsPeople1, not this.dsPeople1.People like the listBox1. Your binding expression, this.BindingContext[this.dsPeople1.People] also binds against People. These are very different. A BindingContext must use the exact same binding. this.dsPeople1 and this.dsPeople1.People are different contexts.

So, change the binding for textBox1 to this:
this.text1.DataBindings.Add(
  new Binding("Text", this.dsPeople1.People, "First_Name"));


 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Data Binding a TextBox to a DataSet Pin
woaksie25-May-04 4:54
woaksie25-May-04 4:54 
GeneralRe: Data Binding a TextBox to a DataSet Pin
Heath Stewart25-May-04 5:51
protectorHeath Stewart25-May-04 5:51 
GeneralRe: Data Binding a TextBox to a DataSet Pin
woaksie25-May-04 19:06
woaksie25-May-04 19:06 
GeneralRe: Data Binding a TextBox to a DataSet Pin
woaksie25-May-04 19:21
woaksie25-May-04 19:21 
GeneralExpressions(calculations) Pin
stevemasters2224-May-04 18:46
stevemasters2224-May-04 18:46 
GeneralRe: Expressions(calculations) Pin
sreejith ss nair24-May-04 19:20
sreejith ss nair24-May-04 19:20 
GeneralRe: Expressions(calculations) Pin
stevemasters2224-May-04 19:34
stevemasters2224-May-04 19:34 
GeneralRe: Expressions(calculations) Pin
sreejith ss nair24-May-04 19:54
sreejith ss nair24-May-04 19:54 
GeneralRe: Expressions(calculations) Pin
Stefan Troschuetz24-May-04 21:16
Stefan Troschuetz24-May-04 21:16 
GeneralRe: Expressions(calculations) Pin
sreejith ss nair24-May-04 22:07
sreejith ss nair24-May-04 22:07 
GeneralRe: Expressions(calculations) Pin
Stefan Troschuetz24-May-04 22:38
Stefan Troschuetz24-May-04 22:38 
GeneralRe: Expressions(calculations) Pin
stevemasters2225-May-04 17:09
stevemasters2225-May-04 17:09 
GeneralRe: Expressions(calculations) Pin
Dave Kreskowiak25-May-04 17:24
mveDave Kreskowiak25-May-04 17:24 
GeneralRe: Expressions(calculations) Pin
stevemasters2225-May-04 17:46
stevemasters2225-May-04 17:46 
GeneralRe: Expressions(calculations) Pin
Dave Kreskowiak26-May-04 0:46
mveDave Kreskowiak26-May-04 0:46 
GeneralRe: Expressions(calculations) [EDITED} Pin
Dave Kreskowiak26-May-04 3:35
mveDave Kreskowiak26-May-04 3:35 
GeneralRe: Expressions(calculations) Pin
Stefan Troschuetz25-May-04 21:25
Stefan Troschuetz25-May-04 21:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.