Hello Mike
Sample code:
Dim MyEdit As New
UpdateAccountTypes(MyTable.Rows(Me.DataGrid1.CurrentCell.RowNumber))
MyEdit.ShowDialog()
Me.DataGrid1.Refresh()
Explanationof Code:
UpdateAccountTypes is a form that takes a DataRow as an argument to the
New() contstuctor
I get the currently selected row of the datagrid using:
MyTable.Rows(Me.DataGrid1.CurrentCell.RowNumber)
This should give you some insight into doing what you need
Ibrahim
(E-Mail Removed)
"Mike" <(E-Mail Removed)> wrote in message
news:01a401c3bd0d$bd3334a0$(E-Mail Removed)...
> I double click and item in a list box on a form that
> contains the primary index value for a dataset. this
> brings up a second form to display the row fields of the
> dataset through databindings
>
> The primary index value is made available to the second
> form.
>
>
> How do i make the second form display the row that
> contains the primary index instead of the first row in
> the dataset?
>
> I've been unsuccessful in trying to pass the row value
> or position of the dataset to the second form.
>
> Any help would be appreciated.
>
> thanks mike