469,935 Members | 1,469 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

Showing footer in an empty GridView...

Hi,

I've spent the last hour trawling google for this - but all I find are
people asking the same question!

I have a gridview which is being databound to an empty datasource. I can
display the 'EmptyDataText' no problem, but the header and footer do not
display. The header I can live without - but the footer contains the 'Add
new item' form elements, so needs to be visible when the grid is empty.

Is there any (elegant) way to show the header/footer of an empty gridview?

Thanks in advance,

Stu
May 19 '06 #1
1 4530
Repeat the footer markup in the EmptyDataTemplate:
http://msdn2.microsoft.com/en-us/lib...atemplate.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Stu Lock" wrote:
Hi,

I've spent the last hour trawling google for this - but all I find are
people asking the same question!

I have a gridview which is being databound to an empty datasource. I can
display the 'EmptyDataText' no problem, but the header and footer do not
display. The header I can live without - but the footer contains the 'Add
new item' form elements, so needs to be visible when the grid is empty.

Is there any (elegant) way to show the header/footer of an empty gridview?

Thanks in advance,

Stu

May 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Matt | last post: by
reply views Thread by =?Utf-8?B?Vmlua2k=?= | last post: by
reply views Thread by gnewsgroup | last post: by
2 posts views Thread by Tim Royal | last post: by
6 posts views Thread by Steve Harclerode | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.