How tell if formview has no data?

  • Thread starter Thread starter Cirene
  • Start date Start date
Using code, how can I tell if a formview control has no data/records?

I think there are few ways you can do it, you can check if
Formview.DataItem, or Formview.Row are not null, you can check if
datasource has rows, etc
 
Hi, Why dont you try..
for (int i = 0; i <= [FormviewName].PageCount; i++)
{
//Will come here if there is data.
}
 
Back
Top