BindingSource for Windows Forms
Hi
I wonder if anyone can help me i am stuck on trying to retrieve a current value from a Bindingsource which has only one row. I have recently moved from VB to C# and i had it working perfectly in VB. My project is a windows application.
The vb code that worked for me was
greeting.Text = "Good Morning" & " " & Me.PersonBindingSource.Current("firstname").ToString & ""
I tried the following in C#
lbl_greeting.Text = personBindingSource.Current("firstname".ToString().ToString());
except it keeps throwing up
Non-Invocable member 'systems.windows.forms.bindingsource.current' cannot be used like a method.
Please can someone help me out. I would be very greatfull!
Thanks