Click here to Skip to main content
16,015,040 members
Home / Discussions / C#
   

C#

 
GeneralRe: Release vs. debug Pin
Andy *M*24-May-04 22:34
Andy *M*24-May-04 22:34 
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 
I created a windows form. I added a SQLConnection, a SQLDataAdaptor, a DataSet all via the designer. I then added a TextBox and a ListBox and databound them both to a column in the DataSet. I then added a button that will show the next record with the following code;

this.BindingContext[this.dsPeople1.People].Position ++;

When I run this the ListBox’s selected line moves to the next record but the TextBox stays on the first record. Am I missing something?

This is the code that has been generated for the TextBox and the ListBox.

this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsPeople1, "People.First_Name"));

this.listBox1.DataSource = this.dsPeople1.People;
this.listBox1.DisplayMember = "First_Name";



John
GeneralRe: Data Binding a TextBox to a DataSet Pin
Heath Stewart25-May-04 2:50
protectorHeath Stewart25-May-04 2:50 
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 

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.