473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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

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

--
Regards

John Timney
Microsoft MVP

"Dabbler" <Da*****@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
is there a way to show the header even when GridView is empty? the page
looks
kind of bare with just empydatatext or emptyrowtemplate.

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*****@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
is there a way to show the header even when GridView is empty? the page
looks
kind of bare with just empydatatext or emptyrowtemplate.

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*****@discussions.microsoft.comwrote in message
news:A2**********************************@microsof t.com...
is there a way to show the header even when GridView is empty? the page
looks
kind of bare with just empydatatext or emptyrowtemplate.

Thanks.


Aug 1 '06 #4

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

Similar topics

3
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...
1
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...
2
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...
13
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...
4
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...
0
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...
5
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...
1
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...
0
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
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.