I cannot get a value from a cell in a gridview. The gridview loads properly. The first column is a template column with a checkbox. I am able to check whether the user selects the checkbox or not. But I am unable to get any vaule from any other cells in that row.
I try to use: gridview1.SelectedRow.Cells(2).Text to get the value I want.
I get a NullReference Exception was unhandled by user code error.
The gridview has 6 columns. The first is the checkbox column and the other 5 all have data populated in them.