So, I followed your advise and this is my answer to my question,
I added a new column to the data set, named 'encrypted_age',
Then on the data table I processed the existing rows from column age, to be encrypted. I used the if rows is empty since I don't need a new row on the data set but to fill the new column with new row values.
After the column 'Encrpyted_Age' is filled, I used it to be displayed on the code behind GridView Column which is the HyperLinkField.
Thank you for helping me
ds.Tables[0].Columns.Add("Encrypted_Age", typeof(string));
int i = 0;
foreach (DataRow row in ds.Tables[0].Rows)
{
if (ds.Tables[0].Rows[i][3].ToString() == "")
{
ds.Tables[0].Rows[i][3] = Crypto.GetEncryptedQueryString(row["age"].ToString());
}
i++;
}
ds.Tables[0].AcceptChanges();
con.Close();
HyperLinkField Age = new HyperLinkField();
string[] dataNavigateUrlFields = { "Encrypted_Age" };
Age.DataNavigateUrlFormatString = "./testpage.aspx?id={0}";
Age.DataNavigateUrlFields = dataNavigateUrlFields;
Age.DataTextField = "Encrypted_Age";
Age.HeaderText = "Age";
GridView1.Columns.Add(Age);
GridView1.DataSource = ds;
GridView1.DataBind();