obtaining value of specific datagridview cell value using RowEnter event?

obtaining value of specific datagridview cell value using RowEnter event?

Post by hazz » Thu, 09 Feb 2006 09:40:06


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
 
 
 

obtaining value of specific datagridview cell value using RowEnter event?

Post by hazz » Thu, 09 Feb 2006 10:34:08

this is what I wanted.

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