howto display an empty datagrid?

J

Jimmy

Hi

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

thanks

J.
 
G

Guest

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.
 
G

Guest

If the data source has zero record, after data binding, the datagrid only
shows header.

HTH

Elton Wang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top