I have an application where I am loading a data grid from a view. I then want to be able to query a field (or row) that a user clicked on and determine either the row that was clicked on or the field. The idea being is that the record key is in the first column. I then want to return the value of the first field that is on the record that was clicked regardless of which field is clicked on for that row. I then want to return the value of the key field to another field on the form. I will then call another program and pass it the field returned from the data grid. Can any one give me some sample code on how to return this value of the first field?

Any help would be greatly appreciated. Thanks! - Eric-