private void OpenRecord() { grList.DataSource = objPayroll.SelectOTAdjustment(txtEmpID.Text.Trim()); grList.DataBind(); foreach (GridViewRow gRow in grList.Rows) { if (string.IsNullOrEmpty(Common.CheckNullString(gRow.Cells[8].Text)) == false) { gRow.Cells[8].Text = Common.DisplayDate(gRow.Cells[8].Text); } } }