Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 528.6k

Last Date column to be editable

May 1 2023 2:25 AM

Hi

  In below Gridview i want last column Date to be Editable

<asp:GridView ID="grdPlanning" class="table table-bordered" runat="server" OnRowDataBound="gr_RowDataBound" OnRowCommand="grdPlanning_RowCommand" DataKeyNames="BookID" >
</Gridview>
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)