private void OpenRecord() { grSHeadBlock.DataSource = objMasMgr.GetEmpSalaryHeadBlockedData(); grSHeadBlock.DataBind(); foreach (GridViewRow gRow in grSHeadBlock.Rows) { gRow.Cells[4].Text = Common.DisplayDate(gRow.Cells[4].Text.Trim()); gRow.Cells[5].Text = Common.DisplayDate(gRow.Cells[5].Text.Trim()); } }