473,382 Members | 1,424 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,382 software developers and data experts.

Empty Datagrid

Is there a way I can replace the datagrid with text "No recored returned" if
there is no data?

--

______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
da***@helixpoint.com

Interested in Affordable Email Marketing?
Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
If you are interested in becoming a Reseller of HelixPoint products, contact
da***@helixpoint.com
______________________
Nov 17 '05 #1
5 1337
"Davef" <da**@helixpoint.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Is there a way I can replace the datagrid with text "No recored returned" if there is no data?


Yes. Use a Label with your message in it, and a DataGrid. Make the label
Visible="False".

If there's no data, make the Label Visible="True" and the DataGrid
Visible="False".
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #2
"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:OJ****************@TK2MSFTNGP12.phx.gbl...
John,

You are a person endowed with transcendent mental superiority
How many agree?
I do


I don't.

I only recently learned this lesson: "render all, display one" . I've been
doing ASP.NET for two years, and only learned this a month ago!

That's hardly transcendant.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #3
Davef,

Use the ItemDataBound event.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Davef" <da**@helixpoint.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Is there a way I can replace the datagrid with text "No recored returned" if there is no data?

--

______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
da***@helixpoint.com

Interested in Affordable Email Marketing?
Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
If you are interested in becoming a Reseller of HelixPoint products, contact da***@helixpoint.com
______________________

Nov 17 '05 #4
"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:OJ****************@TK2MSFTNGP12.phx.gbl...
John,

You are a person endowed with transcendent mental superiority
How many agree?
I do


I don't.

I only recently learned this lesson: "render all, display one" . I've been
doing ASP.NET for two years, and only learned this a month ago!

That's hardly transcendant.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #5
You are a modest man. tending toward diffidence.
Good job
Thanks

"John Saunders" <jo***********@surfcontrol.com> wrote in message
news:ul**************@TK2MSFTNGP12.phx.gbl...
"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:OJ****************@TK2MSFTNGP12.phx.gbl...
John,

You are a person endowed with transcendent mental superiority
How many agree?
I do


I don't.

I only recently learned this lesson: "render all, display one" . I've been
doing ASP.NET for two years, and only learned this a month ago!

That's hardly transcendant.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

Nov 17 '05 #6

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

Similar topics

2
by: Jim | last post by:
In my Win App, I have a datagrid that's bound to a dataset. When the form loads, the datagrid fills. How can I add an empty row to the end of the datagrid during a button click (similar to...
7
by: Matthew Wieder | last post by:
Hi - I have a datagrid that has a black header and the rows alternate white and gray. The problem is that until items are added to the grid, the grid appears as a large black rectangle, which is...
3
by: Baren | last post by:
Hi! I am developing a web project using ASP.NET and VB.NET as code behind. In one page the user attaches files to the list. The same data is shown in the and the max records visible is 4. Now...
2
by: carballosa | last post by:
Hi guys, I need to use a one row datagrid in my asp.net 1.1 application. The data source will contain 1 or 0 entries. When no rows of data are present I want to show an empty row in the datagrid...
7
by: Neo Geshel | last post by:
Greetings. I have a serious problem. I have multiple sets of tables, several of which are chained more than two tables deep. That is, I have a parent, a child, and a great-grandchild table. ...
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
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.