You can test if there are no records bound, which would bring up that
template. If you want to know if the Template is showing after you fill (or
attempt to fill), you can check GridView.Rows.Count. If it is 0, the empty
data template is showing.
You can test if there are no records bound, which would bring up that
template. If you want to know if the Template is showing after you fill (or
attempt to fill), you can check GridView.Rows.Count. If it is 0, the empty
data template is showing.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.