obtaining value of specific datagridview cell value using RowEnter event?

  • Thread starter Thread starter hazz
  • Start date Start date
H

hazz

I am simply trying to obtain the value of a specific cell ( a CustomerID in
a particular row.) in a DataGridView.

How (or can I ) do this using the RowEnter event?

The datagrid is bound to a datasource obtained via

[OperationContract]
BindingList<Customer> GetCustomers();

Thanks,

-hazz
 
this is what I wanted.

private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs
e)
{
Customer c = m_Customers[e.RowIndex];
MessageBox.Show(c.SID.ToString());
}
 
Back
Top