L
luisrt
i have one bool value. if the value is true i want to display in my gridview "D" or the other 2 options. please help me, i know that i am missing something. but it is not working.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[3] = true)
{
e.Row.Cells[3].Text = "D";
}
else
duration = new DateTime((e.Row.Cells[4].Text), 0, 0, 0);
uno = new DateTime(1, 0, 0, 0);
duration = duration + uno;
if (DateTime.Now < duration)
{
e.Row.Cells[3].Text = "A";
}
else
e.Row.Cells[3].Text = "E";
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[3] = true)
{
e.Row.Cells[3].Text = "D";
}
else
duration = new DateTime((e.Row.Cells[4].Text), 0, 0, 0);
uno = new DateTime(1, 0, 0, 0);
duration = duration + uno;
if (DateTime.Now < duration)
{
e.Row.Cells[3].Text = "A";
}
else
e.Row.Cells[3].Text = "E";
}