By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,152 Members | 1,647 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,152 IT Pros & Developers. It's quick & easy.

Showing footer in an empty GridView...

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.