Take the 2-minute tour ×  I am creating a gridview
programmatically and I want to use the solution to this
question: Programmatically access GridView columns and
manipulate.. In other words, I want to hide the hyperlinkfield
and instead display a templatefield if the value of the
"submitted" column in the row is 1. I'm listing employment
applications and letting the user click "Load Application" if
they have not yet submitted an application, or displaying
"submitted" in plain text if they have already submitted it. I
know how to do this if I create my gridview in the aspx file,
but I don't know how to do this when I'm creating my gridview at
runtime. Here's my code:  Public Sub getSavedApps(ByVal userID
As Integer)         Dim ds As New DataSet         ds =
clsData.sqlGetAllApps(userID)         If ds.Tables(0).Rows.Count
> 0 Then              'let user select which app they want to
work on             Dim grdAppSelect As New GridView
'need to find out if this row has a value of 1 or 0 for submitt