473,657 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

show header when gridview is empty

is there a way to show the header even when GridView is empty? the page looks
kind of bare with just empydatatext or emptyrowtemplat e.

Thanks.
Mar 30 '06 #1
3 8128
Someones done all the work for you............ .

http://blogs.claritycon.com/blogs/ke...02/28/247.aspx

--
Regards

John Timney
Microsoft MVP

"Dabbler" <Da*****@discus sions.microsoft .com> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
is there a way to show the header even when GridView is empty? the page
looks
kind of bare with just empydatatext or emptyrowtemplat e.

Thanks.

Mar 30 '06 #2
Wow, life is good!

Thanks much.

"John Timney ( MVP )" wrote:
Someones done all the work for you............ .

http://blogs.claritycon.com/blogs/ke...02/28/247.aspx

--
Regards

John Timney
Microsoft MVP

"Dabbler" <Da*****@discus sions.microsoft .com> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
is there a way to show the header even when GridView is empty? the page
looks
kind of bare with just empydatatext or emptyrowtemplat e.

Thanks.


Mar 30 '06 #3
John,
that link was very helpful.

As a related issue, I'd like to add a final row at the end of the GridView,
after the footer, pager, and all other rows. I'd like to have something
similar to the bottom status bar on IE or Win Explorer.

Using the Footer template for this is not an option since I will get a row
with a cell for each column on the grid. And I'd like to have something more
customizable.

Ideally it would be Templated Row but on a first try I'd go with a one-cell
only row.

The problem I have is how to get a reference to the current table of rows so
I can add another row at the end.

Thanks,
Vicenç

"John Timney ( MVP )" wrote:
Someones done all the work for you............ .

http://blogs.claritycon.com/blogs/ke...02/28/247.aspx

--
Regards

John Timney
Microsoft MVP

"Dabbler" <Da*****@discus sions.microsoft .comwrote in message
news:A2******** *************** ***********@mic rosoft.com...
is there a way to show the header even when GridView is empty? the page
looks
kind of bare with just empydatatext or emptyrowtemplat e.

Thanks.


Aug 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
10147
by: tarscher | last post by:
Hi all, I have a gridview populated with data coming from a dataset (created via the wizard). The data shown in the gridview is dependent on the the choice of a control (dropdown with autopostback enabled). When I load the page for the first time I the gridview is empty. When I select something in the dropdownlist the gridview is populated correctly. I guess this has something to do with the fact that the first time no data from the...
1
1230
by: Fernando | last post by:
I had made an gridview with a insert button on the header, so the user click the button and insert a record through a FormView. My problem is when the table is empty, so the gridview is invisible and there is no insert button ! Any tips?
2
9206
by: Beemer Biker | last post by:
Cant believe I spent 4 hours trying to figure out why only the first grid in my new multiview shows up and the other grids are invisible in the other views I just added. The database tables were not populated except for the table I had in the first view! INCREDIBLE: All that data I saw during design, and assumed it came from the database, was just bill gates made up data that the designer needed so you could see what you were doing. So...
13
10771
by: Tomasz Jastrzebski | last post by:
Helo All, The problem: GridView control does not render at all (header/footer) when the data source is empty. I have seen a similar question posted already, but I just can not believe there is no simple solution. I do not believe ASP.Net team took this, sort of, innovative approach and left no way out. Could anybody advise?
4
2267
by: shapper | last post by:
Hello, I have created a GridView on runtime by implementing the ITemplate class. This Gridview displays a list of articles. Each article has a Title, Content and PubDate. I am trying to create a Date Header like in a blog, i.e., display the date on top of every daily posts.
0
3443
by: Reinhard | last post by:
Hi, Need some directions on Ajax, UpdatePanel and Gridview to achive the following: I like to show a Gridview with Data ONLY if the user is interested in Details, but without a full page reload! If the page loads, only a summary (eg. COUNT of recs) should be displayed
5
1962
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I have a sub in vb.net that adds extra headers to a gridview and it works very well. however, i tried to translate it to c# and i'm getting the header inserting itself over the first datarows and inserting blank rows at the bottom. i can post the code if necessary for the C# but it basicly mirrors the vb.net -- (i''ll be asking a lot of these, but I find C# totally way cooler than vb
1
3624
by: ABHIJIT B | last post by:
Hi, I am using GridView in my web form and binding DataTable in code behind file as given below. gvUsersList.DataSource = dtUserList; gvUsersList.DataBind(); If no records exists in DataTable GridView should display Coulmn Header text.
0
231
by: rote | last post by:
Hi Guys, But i noticed if my data source is empty, the GridView hides my footer (and header) and only display the EmptyDataText. How can i solve this. Thanks in advance
0
8326
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8743
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.