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