DataGrid - Windows forms and row access

N

Nick Caramello

I am trying to do something that would appear to be pretty straightforward -
bind a dataset to a datagrid, and then use the selection of a row (double
click) to spawn a detail window. The issue that I am running into is how to
get the primary key from either the dataset or the grid (and I am trying to
access it by name, or index).

I've tried getting the information from the dataset, but there is no
relationship between the data in the grid and the data in the dataset after
the bind (after a sort of the grid), and I cannot seem to get any
information from the grid itself.

Thanks in advance for any help
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top