.Net Web Database

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having a hard time trying to create a form that will display an
individual record and have the ability to update the inforation. I am unsure
how to bind a textbox to my data - most of the examples i have seen use the
datagrid and i would like to display the data in a different format. How do u
display info in a label or textbox?
 
I should mention I am working in vs.net and trying to do my work in vb.net.
If anyone can point me in the right direction it would be greatly
appreciated...
 
Databinding in .NET is pretty flexiable. You can bind any property of your
control to your data source. If your control can only display one entry of
your data source, you can use BindingContext[mydata].Position to specify
which entry of your data to display.

In your example, you might want to bind the Text property of your label
control to your data source and use BindingContext[mydata].Position to
control the which entry to be displayed.

You should also look at the CurrencyManager in your online help.
 
Back
Top