-
September 16th, 2011, 02:31 AM
#1
VB.NET: How to retrieve a field value from a data source binding?
Hi everyone!
I'm a VB.NET newbie, and i'm currently building a .NET application.
in VB6 (Data1 = Data control):
MsgBox "ClientName is: " & Data1.Recordset("LastName")
in Delphi:
MessageDlg('ClientName is: ' + qryClientsClientName.AsString, mtInformation, [mbOK], 0);
How do i achieve the same in VB.NET (VS2010) in data binding mode?
Thanks in advance!
-
September 16th, 2011, 07:09 AM
#2
Re: VB.NET: How to retrieve a field value from a data source binding?
look up dataset and datareader objects
Always use [code][/code] tags when posting code.
-
September 16th, 2011, 09:21 AM
#3
Re: VB.NET: How to retrieve a field value from a data source binding?
i finally got it to work, and i'd like to share it with you guys.
Dim myRowView As DataRowView = ClientsBindingSource.Current
MessageBox.Show(myRowView.Item("ClientName"))
Tags for this Thread
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
|