Get Hidden Column from Datagrid

  • Thread starter Thread starter CodeToad
  • Start date Start date
C

CodeToad

I hope this is not a repost. Other computer hung when posting question.

I have a datagrid, populated with 3 columns. col1=PK from database, and is
hidden using gridcolumn styles.
I need to retrieve the text of the PK in col1, row-n, and not sure how.
 
CodeToad,

What you should do is use the binding context for the data grid. It
will allow you to get the currently selected row, and from that, you can get
the value of the primary key (using the column name).

Hope this helps.
 

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

Back
Top