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

how to display Footer in a gridview even if there is no data bound

P: n/a
Hi,

well, I'd like to know how to still display the footer of a gridview
even if there is no data bound from the db. That is because I use the
footer to put my inputs to add a new record, so I need to be able to
add records, even if there is none yet...

thanks!

Jan 25 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

While its a hack, you're probably going to have to put in a dummy row in
your DataSource.
And (maybe) hide that row.

"ibiza" <la******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hi,

well, I'd like to know how to still display the footer of a gridview
even if there is no data bound from the db. That is because I use the
footer to put my inputs to add a new record, so I need to be able to
add records, even if there is none yet...

thanks!

Jan 25 '06 #2

P: n/a
There is an onemptytext row, maybe you can rewrite it's contents on render?
"ibiza" <la******@gmail.com> schreef in bericht
news:11*********************@f14g2000cwb.googlegro ups.com...
Hi,

well, I'd like to know how to still display the footer of a gridview
even if there is no data bound from the db. That is because I use the
footer to put my inputs to add a new record, so I need to be able to
add records, even if there is none yet...

thanks!

Jan 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.