You can do something like this
private void current_Product_ListDataGridView_CellContentClick( object
sender, DataGridViewCellEventArgs e)
{
object i;
i =
this.current_Product_ListDataGridView.Rows[current_Product_ListDataGridView.CurrentCell.RowIn dex].Cells[0].Value;
}
to get the primary key to requery the row for another form.
chanmm
"MJ" <no******@belmont.co.ukwrote in message
news:12*************@corp.supernews.com...
Newbie question.
I have a DataGridView which is bound to a manually created read only
DataSet. One of the fields in the dataset is a primary key of the table. I
simply wish to know which record is selected when the user double clicks a
row as this will then open a detail view of the record in another form.
I would appreciate any advise.
MJ