|
-
Apr 15th, 2010, 01:14 AM
#1
Thread Starter
Fanatic Member
Code to show the records in textboxes?
Dear Friends,
How can we show the records in the textboxes in VS2008? I used the following code in VB6 to perform this action:
Code:
Public Sub Show_Record()
If Not (rs.BOF Or rs.EOF) = True Then
txtSNO = rs(0) & ""
txtPRN = rs(1) & ""
txtPRL = rs(2) & ""
txtDESC = rs(3) & ""
End If
End Sub
-
Apr 15th, 2010, 01:16 AM
#2
Re: Code to show the records in textboxes?
Use a DataAdapter to populate a DataTable. Bind that Datatable to a BindingSource. Bind that BindingSource to your controls. To navigate, call MoveNext, MovePrevious, etc, on the BindingSource
-
Apr 15th, 2010, 07:18 AM
#3
Thread Starter
Fanatic Member
Re: Code to show the records in textboxes?
 Originally Posted by jmcilhinney
Use a DataAdapter to populate a DataTable. Bind that Datatable to a BindingSource. Bind that BindingSource to your controls. To navigate, call MoveNext, MovePrevious, etc, on the BindingSource
Thanks. There is no such code to written. If not, please give me any example on how to use DataAdaptor?
-
Apr 15th, 2010, 09:08 AM
#4
Re: Code to show the records in textboxes?
Follow the Database FAQ link in my signature.
-
Apr 15th, 2010, 10:06 AM
#5
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|