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.
 
Back
Top