If all your binding is data members from one database row, then just bind the controls you need to be bound:
If you need to browse through the rows, look into the BindingNavigator.Code:Private _data as DataRow Public Sub New(ID as integer) InitializeComponent() ' set the me._data to the data returned from the database table using ID Me.Label1.DataBindings.Add(New Binding("Text", me._data, "Title")) Me.Label2.DataBindings.Add(New Binding("Text", me._data, "Value")) End If
Justin




Reply With Quote