Yes.
TextBoxName.DataBindings.Add("Text", dataSetName, "TableName.FieldName")
or you can use dataSetName.Tables[TableIndex], "FieldName"); as the second
two parameters. You'll want to use a Binding Context so you can navigate
the records, you'll need to use some buttons or something and behind them
you can set the .Position property of the binding Context
Basically, create a BindingmanageBase
Dim bmb as BindingManagerBase
then create a BindingContext
bmb = me.BindingContext 'where me is the Form you have the controls on or
the binding context of the control. I think this
http://msdn.microsoft.com/library/d...ystemwindowsformsbindingcontextclasstopic.asp
will walk you through it but let me know if you have any questions.
Also, you can use a dataRelation for instance and bind a combobox or listbox
(remember that Grids, Listboxes and Comboboxes use Complex binding..
..DataSource = WhateeverDataSet, DisplayMember = "WhateverField", ValueMember
= "whateverField" . YOu can use a Datarelation object
http://www.knowdotnet.com/articles/datarelation.html to define parent/child
relationships and use a listbox for instance to navigate instead of buttons
so you can have something more like Outlook's navigation.
HTH,
Bill
--
W.G. Ryan MVP Windows - Embedded
http://forums.devbuzz.com
http://www.knowdotnet.com/dataaccess.html
http://www.msmvps.com/williamryan/
Paul said:
Hi I have a simple stored procedure and am using a data adapter and
dataset. I am able to bind the results to a grid(can see the results in the
grid).