Mischamel Posted April 24, 2003 Posted April 24, 2003 ... while showing DataFields in BindingCollections of TextBoxes ?? Quote Sometimes you´ve got to make a silent Takedown .
Moderators Robby Posted April 24, 2003 Moderators Posted April 24, 2003 Look into the using the CurencyManger with a DataTable. Quote Visit...Bassic Software
*Experts* Nerseus Posted April 24, 2003 *Experts* Posted April 24, 2003 The easiest way is through a Forms BindingContext property. If you've bound your textbox like so: // Text is the property on the TextBox control // FirstName is a column in the DataTable Table1 textBox1.DataBindings.Add("Text", myDataSet.Tables["Table1"], "FirstName"); Then you can navigate forward/backwards like so: this.BindingContext[myDataSet.Tables["Table1"]].Position++; You can also create your own CurrencyManager, as Robby suggested. Especially if you need multiple "pointers" into the same DataTable. -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Moderators Robby Posted April 25, 2003 Moderators Posted April 25, 2003 Cool, I didn't know that method. Quote Visit...Bassic Software
Mischamel Posted April 28, 2003 Author Posted April 28, 2003 is the C# code identic to vb 7 ?? Quote Sometimes you´ve got to make a silent Takedown .
Moderators Robby Posted April 28, 2003 Moderators Posted April 28, 2003 In this case they are the same, change this to Me and the [ ] for ( ). Quote Visit...Bassic Software
APaule Posted May 1, 2003 Posted May 1, 2003 plus you have to change "++" to "+=1" or "-=1" depending on the direction you want to navigate to. And yes Robby the CurrencyManager is a great deal. It's worth a second and third glance. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.