when i am selecting row from gridview for editing then left date is not coming on popup window ,here is screenshot
https://ibb.co/tz4xVHj
here is edit code c#
protected void Edit(object sender, EventArgs e)
{
using (GridViewRow row = (GridViewRow)((LinkButton)sender).Parent.Parent)
{
txtEmpID.ReadOnly = true;
txtEmpID.Text = row.Cells[0].Text;
txtEmpName.Text = row.Cells[1].Text;
txtFahterName.Text = row.Cells[2].Text;
//ddlSecID.ClearSelection();
//ddlSecID.Items.FindByText(row.Cells[3].Text).Selected = true;
//txtjdate.Text = row.Cells[4].Text;
txtCNIC.Text = row.Cells[3].Text;
ddlSecID.ClearSelection();
if (ddlSecID.Items.FindByText(row.Cells[4].Text) != null)
{
ddlSecID.Items.FindByText(row.Cells[4].Text).Selected = true;
}
if (ddlstatus.Items.FindByText(row.Cells[5].Text) != null)
{
ddlstatus.Items.FindByText(row.Cells[5].Text).Selected = true;
}
txtjdate.Text = Convert.ToDateTime(row.Cells[6].Text).ToString("dd/MM/yyyy");
txtldate.Text = (!string.IsNullOrWhiteSpace(txtldate.Text)) ? Convert.ToDateTime(row.Cells[7].Text).ToString("dd/MM/yyyy") : "";
// txtldate.Text = (!string.IsNullOrEmpty((row.Cells[7].Text).Trim()) ? Convert.ToDateTime(row.Cells[7].Text).ToString("dd/MM/yyyy") : "");
// txtldate.Text = (!string.IsNullOrEmpty((row.Cells[7].Text)) ? Convert.ToDateTime(row.Cells[7].Text).ToString("dd/MM/yyyy") : "");
// txtldate.Text = (!string.IsNullOrWhiteSpace(txtldate.Text)) ? Convert.ToDateTime(row.Cells[7].Text).ToString("dd/MM/yyyy") : "";
txtcell.Text = row.Cells[8].Text;
txtaddress.Text = row.Cells[9].Text;
popup.Show();
}
}