Get data (onclick) from dataGridView

Jelmer

Regular
Joined
Jan 11, 2006
Messages
96
Hello,

I've got a datagridview.
That one is linked to a MDB database.

If i press the mouse button on one record.. i like to get the data from that form to some text fields. How can i do that ?

Code:
        private void dataGridView1_CellContentClick_2(object sender, DataGridViewCellEventArgs e)
        {
            txtNaam.text = ???
        }

I'll use this components:

- bindingNavigator
- DataSetBindingSource
- tableAdaptor
 
Back
Top