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

howto display an empty datagrid?

P: n/a
Hi

I want to display an empty datagrid if my datasource has zero results. How
to do this?

thanks

J.
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
DO you mean that you want to display column heading of the grid with zero
records in it. If so then you can set the tablestyle proepty of the grid &
simply put datasource to null.

Reg.
Prasad.

"Jimmy" wrote:
Hi

I want to display an empty datagrid if my datasource has zero results. How
to do this?

thanks

J.

Nov 19 '05 #2

P: n/a

yes, what do you mean with tablestyle property?

reg. J
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3

P: n/a
If the data source has zero record, after data binding, the datagrid only
shows header.

HTH

Elton Wang

"Jimmy" wrote:
Hi

I want to display an empty datagrid if my datasource has zero results. How
to do this?

thanks

J.

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.