How to check whether Gridview Contains any Row or Not?

 Posted by vishalneeraj-24503 on 12/20/2013 | Category: ASP.NET Interview questions | Views: 1765 | Points: 40
Answer:

With the help of Gridview Rows' Count property,we can check whether Gridview Contains any Row or Not?

Like:

if(grid_view_employee_details.Rows.Count>0)

{
//rows present
}
else
{
//rows do not present
}


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response