Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
if (CaseStatusDay >= maxDays)
{
  if (currentrow != null)
  {
    currentrow.BeginEdit();
    if (showFlagCaseStatus.Contains(currentCaseStatus))
    {
      currentrow["CaseStatusFlag"] = "~/Images/flag_red.png";

      if (webSession.GetVariable("LoginCompanyType") == "CCCS")
      {
        if (e.Row.Cells.Count >= 13)
        {
          e.Row.Cells[12].Attributes.Add("onmouseover", "tooltip('Case has not been statused in the last " + maxdaysdispay + " days')");
          e.Row.Cells[12].Attributes.Add("onmouseout", "exit();");
        }
      }
      else if (webSession.GetVariable("LoginCompanyType") == "VEND" || webSession.GetVariable("LoginCompanyType") == "INS")
      {
        if (e.Row.Cells.Count >= 14)
        {
          e.Row.Cells[13].Attributes.Add("onmouseover", "tooltip('Case has not been statused in the last " + maxdaysdispay + " days')");
          e.Row.Cells[13].Attributes.Add("onmouseout", "exit();");
        }
      }
    }
  }
}
Posted
Updated 4-Oct-11 2:01am
v2
Comments
Syed Salman Raza Zaidi 4-Oct-11 7:58am    
on which line you are getting error?
[no name] 4-Oct-11 7:58am    
Do you have a question?

1 solution

There is very little we can do for you with the above code as we do not have access to your environment.

The best answer is open your code in a debugger while running and see where you are getting the null value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900