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!
Re: VB.NET: How to retrieve a field value from a data source binding?
look up dataset and datareader objects
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"))