User61956409 posted
Hi Dakshina,
hide the hyperlink for the FOLDER value from the following code
Hide HyperLinkField in code behind:
protected void grv_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[1].Style.Add("visibility", "hidden");
}
}
Hide HyperLinkField in client side:
<style>
td:nth-child(2) a {
visibility: hidden;
}
</style>
Or you can specify the Visible property of HyperLinkField to
false:
<asp:HyperLinkField DataNavigateUrlFields="FOLDER" DataTextField="FOLDER" HeaderText="Folder" Visible="false"/>
With Regards,
Fei Han