Ramco Ramco

Ramco Ramco

  • 419
  • 3.4k
  • 527.8k

Link to be displayed in short

May 21 2023 5:37 AM

Hi

  I have below gridview in which there is one column Amazon Link. I want to be displayed as Amazon Link & when clicked it should open in another window

SQLUtility sQLUtility = new SQLUtility();
DataTable dt = sQLUtility.GeBookPlanningRecommendation(HRpl, BookCollection, StudentCollection).Tables[0];
if (dt != null)
{
    DataColumn Remarks = new DataColumn("Remarks", typeof(string));
    dt.Columns.Add(Remarks);
    grdPlanning.DataSource = dt;
    grdPlanning.DataBind();
}
<div class="table-responsive">
    <asp:GridView ID="grdPlanning" class="table table-bordered" runat="server" OnRowDataBound="gr_RowDataBound" OnRowCommand="grdPlanning_RowCommand" AutoGenerateColumns="true">
    </asp:GridView>
</div>

Thanks


Answers (6)