Can anybody help a VFP Developer trying to understand how a VB.NET DataGridView (VS2005) works?
What I want to do is to have a grid on a form with a list of records, and a button which (for now) displays the PK of the currently highlighted record.
In my form Load() I have (cusBO.GetAllRecords() is a Business Object method which returns a DataTable - this is returning the correct data):
Dim
dt1 As New DataTable
dt1 = cusBO.GetAllRecords()
Me.BindingNavigator1.BindingSource = Me.BindingSource1
Me.BindingSource1.DataSource = dt1
Me.DataGridView1.DataSource = Me.BindingSource1
The form runs, and I can navigate either on the grid or with the BindingNavigator.
Now I need some code to call in the button's Click() to essentially give me:
MsgBox(<current record PK field value>)
This is the bit I need some help with please.
TIA, Kevin