[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

DataGrid not Visiible in Browser

I have got a weird problem with the DataGrid on webForm. When the project is opened in IE  Grid is not to be seen.  In design view I can see the datagrid and in code behind also its events but when opened in browser I dont find it . I had been to Viewsource too but no datagrid. Other controls are fine.

What would be the probelm
0
dotnet0824
Asked:
dotnet0824
1 Solution
 
sabeeshCommented:
Can you send the code part.
0
 
YurichCommented:
see if you have correct page set as a start up page and also see if your datagrid is getting data-bound. If it's not data-bound - it will not be visible. If it's all done by the framework (in data source), make sure that your query returns any results from the database - it won't be shown if there are no results. If you do some databinding, place a breakpoint where you have it done and see whether it's getting bound.

Good luck,
Yurich
0
 
Bob LearnedCommented:
That is usually because the data source is blank, or you didn't call DataGrid.DataBind() after setting the DataSource property.

Bob
0
 
dotnet0824Author Commented:
Thanks for that
0
 
YurichCommented:
my pleasure :)
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now