Anthony Clarke

Anthony Clarke

  • NA
  • 127
  • 0

Get data from gridview - please help

Aug 24 2011 5:47 AM

Hi,

I was just wondering... I can get the text from the column DateofRequest because it's there in the gridview but on my linq query i set it so that the primary key ["PKEY"] is not shown. And if i try this string dateOfRequest = View.GetRowCellDisplayText(e.RowHandle, View.Columns["PKEY"]); i just get an error.


How to i go about getting the primary key data from the selected row without having to show the primary key column.


GridView

{


Thanks in advance
Anthony

View = sender as GridView;trystring dateOfRequest = View.GetRowCellDisplayText(e.RowHandle, View.Columns["DateofRequest"]);

Answers (2)