Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why isn't my Datagrid appearing on my page????

Status
Not open for further replies.

KevoMee

Technical User
Apr 30, 2002
72
IE
Hi,

I've just written a simple webform which displays a datagrid containing all the rows in my table users.....but the problem is is that the page (when I go to view it in my browser) refuses to show the datagrid at all (even an empty one). It's like Visual .NET is totally ignoring me (has anyone fell that this happens all the time :D). I have tried to display the datagrid by manually coding the data into my page_load function as in:

private void Page_Load(object sender, System.EventArgs e)
{
AuctionService = new Search.localhost.Service1();
AuctionSet.Merge(AuctionService.GetAuction());
UserGrid.DataSource = AuctionSet.Tables["users"].Defaultview;
UserGrid.DataBind();
}

And I have also tried to do it using Visual .NETs built in service for the datagrid and either way absolutely nothing appears on my page. Anyone have any ideas?

Cheers.
 
Have you stepped through the code to make sure that there is data in your table?

Jack
 
Did you check to make sure runat="server" is there? Its easy to remember and just as easy to forget. I've done it before.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top