obtaining value of specific datagridview cell value using RowEnter event?

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
 
H

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());
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top