Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 517.5k

Instead of Text Icons should be displayed

Apr 30 2023 10:17 AM

Hi

  I have below code & i want instead of Update/Cancel icons should be displayed and after the right side of last column.

<div class="table-responsive">
    <%--DataKeyNames="BookID" OnRowEditing="OnRowEditing" OnRowCancelingEdit="OnRowCancelingEdit" OnRowUpdating="OnRowUpdating"--%>
    <asp:GridView ID="grdPlanning" class="table table-bordered" runat="server" OnRowDataBound="gr_RowDataBound" OnRowCommand="grdPlanning_RowCommand" 
     DataKeyNames="BookID" OnRowEditing="OnRowEditing" OnRowCancelingEdit="OnRowCancelingEdit" OnRowUpdating="OnRowUpdating" AutoGenerateEditButton="true"  > 
    </asp:GridView>
</div>
DataTable BookPlanningResult = sQLUtility.GeBookPlanningRecommendation(vRpl, BookCollection, StudentCollection).Tables[0];
if (BookPlanningResult != null)
{
    DataColumn Remarks = new DataColumn("Remarks", typeof(string));
    BookPlanningResult.Columns.Add(Remarks);
    DataColumn Dates = new DataColumn("Date", typeof(DateTime));
    BookPlanningResult.Columns.Add(Dates);

    grdPlanning.DataSource = BookPlanningResult;
    grdPlanning.DataBind();
}

Thanks


Answers (2)