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.