Hi, How to determinate if a Gridview is empty?
A ad Jun 19, 2006 #3 Thanks, I thought it can do before. But when there is header row in a gridview, it is empty, but gridview.rows.count will be larger than zero.
Thanks, I thought it can do before. But when there is header row in a gridview, it is empty, but gridview.rows.count will be larger than zero.
T Tasos Vogiatzoglou Jun 19, 2006 #4 ad said: Hi, How to determinate if a Gridview is empty? Click to expand... Why don't you check the dataset you bind to the gridView ?
ad said: Hi, How to determinate if a Gridview is empty? Click to expand... Why don't you check the dataset you bind to the gridView ?
B Brock Allen Jun 20, 2006 #5 There is a EmptyDataTemplate in the GridView that's displayed when there are no rows -- perhaps this will give you what you need/want? -Brock http://staff.develop.com/ballen
There is a EmptyDataTemplate in the GridView that's displayed when there are no rows -- perhaps this will give you what you need/want? -Brock http://staff.develop.com/ballen