Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Showing the column headers of a GridView when there is no data

7 views
Skip to first unread message

Hans Merkl

unread,
Nov 11, 2005, 3:48:35 PM11/11/05
to
Hi,

Is there a way to show the column headers of a GridView control even if
there is no data? The only thing I see is the EmptyDataTemplate but I would
also like to display the column headers.

Thanks

Hans

Kevin Yu [MSFT]

unread,
Nov 11, 2005, 9:39:14 PM11/11/05
to
Hi Hans,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Steven Cheng[MSFT]

unread,
Nov 14, 2005, 1:58:58 AM11/14/05
to
Hi Hans,

As for the GridView or other template databound control, they'll populate
UI only when there is existing valid record binded with them. So I'm afraid
for empty datasource collection ,we could not make the GridView only
displaying Headers. If you do need to make only an headering line visible,
we may use another GridView or Table which is populated the headers with a
dummy record and hidden it when our gridview has records but make it
visible when there is no datarecords.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: Hans Merkl <rhm...@newsgroups.nospam>
| Subject: Showing the column headers of a GridView when there is no data
| User-Agent: 40tude_Dialog/2.0.14.1
| MIME-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Sender: rhm...@newsgroups.nospam
| Reply-To: rhm...@newsgroups.nospam
| Organization: RHM Media, LLC
| Date: Fri, 11 Nov 2005 15:48:35 -0500
| Message-ID: <1436xvbe6haae.tgz7cwqczd2c$.d...@40tude.net>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: pcp0011547978pcs.anapol01.md.comcast.net 68.54.166.32
| Lines: 1
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:357495
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hans Merkl

unread,
Nov 14, 2005, 10:48:26 AM11/14/05
to
Hi Steven,

I was expecting that answer already. Can I put in a feature request for
future versions to add this feature?

Cheers

Hans

Steven Cheng[MSFT]

unread,
Nov 14, 2005, 9:51:47 PM11/14/05
to
Thanks for your response Hans,

Of course, you can submit such a request on any of our products through the

msw...@microsoft.com email alias.

Also, there are some blogs of ASP.NET Team members published on internet:

http://msdn.microsoft.com/asp.net/community/blogs/team/default.aspx

You can also add some entries of your feedback there. Many of the new
features of our products are collected from newsgroup and internet
community's feedback.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: Hans Merkl <rhm...@newsgroups.nospam>

| Subject: Re: Showing the column headers of a GridView when there is no

data
| User-Agent: 40tude_Dialog/2.0.14.1
| MIME-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Sender: rhm...@newsgroups.nospam
| Reply-To: rhm...@newsgroups.nospam
| Organization: RHM Media, LLC

| References: <1436xvbe6haae.tgz7cwqczd2c$.d...@40tude.net>
<84ZupjO...@TK2MSFTNGXA02.phx.gbl>
| Date: Mon, 14 Nov 2005 10:48:26 -0500
| Message-ID: <14vfklpj9y1xx.n...@40tude.net>


| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: pcp0011547978pcs.anapol01.md.comcast.net 68.54.166.32
| Lines: 1
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl

microsoft.public.dotnet.framework.aspnet:357964
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

0 new messages