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

Re: Visibility of GridView

12
Hi,

I am bugged up by this problem , struggling a lot to get it through .

I am using a GridView that is populated with data from database.
It is being placed in a content place holder.
The problem is when i execute the program it is not visible.

I made sure that in the desing page it is placed within the content place holder but still its not visible.

Please help.
Thanks in advance,
Saira
Sep 28 '07 #1
2 1394
Frinavale
9,735 Expert Mod 8TB
Hi,

I am bugged up by this problem , struggling a lot to get it through .

I am using a GridView that is populated with data from database.
It is being placed in a content place holder.
The problem is when i execute the program it is not visible.

I made sure that in the desing page it is placed within the content place holder but still its not visible.

Please help.
Thanks in advance,
Saira
Are you certain that the GridView is being populated with data from the database.

If a GridView contains nothing then it isn't displayed.

I suggest adding something else to the content placeholder (like a label with text in it) to make sure that there is no problem with the content place holder...if it shows up I'd double check that the GridView's being populated correctly.
Sep 28 '07 #2
bsaira
12
Are you certain that the GridView is being populated with data from the database.

If a GridView contains nothing then it isn't displayed.

I suggest adding something else to the content placeholder (like a label with text in it) to make sure that there is no problem with the content place holder...if it shows up I'd double check that the GridView's being populated correctly.

Yes the content place holder is working fine.
That might be the case that the grid view is not being populated with the data.

The code goes like this

//My C# code..

OrdersTableAdapter o1 = new OrdersTableAdapter();
DataSet1.OrdersDataTable dt1;
DateTime d1 = Convert.ToDateTime(sel); //sel comes from calendar click
dt1 = o1.GetData(d1);

GridView1.DataSource = dt1;
GridView1.DataBind();

Please let me know how do I make my gridview populated with data...
Thanks.
Oct 1 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jukka K. Korpela | last post by:
I have noticed that the meaning of visibility: collapse has been discussed on different forums, but with no consensus on what it really means. Besides, implementations differ. The specification...
12
by: lawrence | last post by:
The following function correctly makes everything invisible but then fails to turn the one chosen DIV back to visible. I imagine I'm getting the syntax of the variable wrong? I've tried this with...
4
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) {...
8
by: TTroy | last post by:
I have a few questions about "scope" and "visibility," which seem like two different things. To me "visibility" of the name of a function or object is the actual code that can use it in an...
4
by: mail | last post by:
Hi I'm very new to asp.net and I'm trying to make a little program for learning purpose. I want to read an XML File and get some data that is stored in it. (The XML-File isn't always the same so...
11
by: -D- | last post by:
How can I turn the visibility of the xml control on or off? <%@ Control Language="c#" AutoEventWireup="false" Codebehind="TopNavBar.ascx.cs" Inherits="compass.user_controls.TopNavBar"...
1
by: Microsoft News Group | last post by:
I am trying to control the visibilty of the footerrow, but having little luck. I am currently at this. if (e.CommandName == "Update") { PropertyGridView.FooterRow.Visible = true;
3
by: =?Utf-8?B?Ym9iYnk=?= | last post by:
My following code is not working I have a gridview that contains a linkButton in a template field. I want to set the visibility of the linkbutton based on a int field in a database. Selecting...
5
by: jc | last post by:
I have a situation where I need to condition gridview item visibilty after they've been created and after a textbox on page has a value. What's the best way to do this in VB.NET? Any code sample? ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.