Hello John,
You should utilize CurrencyManager to get the data record corresponding to
the current position in the DataGrid.
CurrencyManager cm =
(CurrencyManager)this.BindingContext[dataGrid.DataSource,
dataGrid.DataMember];
DataRowView currentRow = (DataRowView)cm.Current;
--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
"John Smith" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello all:
>
> What is the best way to get a reference to an item selected in a data
> grid? What I am trying to do is have it so a user can select from a list
> in a data grid of all our employees and then click a button to update that
> employees details. What is the best way to accomplish this so that you
> can then bind this data to the next form?
>
> Thanks,
>
> - John -