DateTime conv = Convert.ToDateTime(e.Row.Cells[3].Text); string dat = conv.ToString("dd-MMM-yy"); e.Row.Cells[3].Text = dat; e.Row.Cells[6].Text = dat; } if (grdv.Rows.Count > 0) { grdv.HeaderRow.Cells[0].Text = "Edit"; grdv.HeaderRow.Cells[1].Text = "Attendance Detail Reference"; grdv.HeaderRow.Cells[2].Text = "Course Detail Reference"; grdv.HeaderRow.Cells[3].Text = "Date Of Attend"; grdv.HeaderRow.Cells[4].Text = "Attendance "; grdv.HeaderRow.Cells[5].Text = "Reason "; grdv.HeaderRow.Cells[6].Text = "Last Updated Date"; grdv.HeaderRow.Cells[7].Text = "Last Updated By"; grdv.HeaderRow.Cells[8].Text = "Student id"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)