I am working in C#.Net and have a page with five gridviews. Once I run the application, all the five grids should be displayed with data at a time. But now, one by one is loading and displaying.
How to display all the gridview at a time? Whether I should do anything in page render.
Here is my Page_Load..
gridview1.DataSource = ds1.Tables[0];
gridview1.DataBind();
gridview2.DataSource = ds2.Tables[0];
gridview2.DataBind();
gridview3.DataSource = ds3.Tables[0];
gridview3.DataBind();
gridview4.DataSource = ds4.Tables[0];
gridview4.DataBind();
gridview5.DataSource = ds5.Tables[0];
gridview5.DataBind();
First two grids had less amount of data. so it got quickly laoded in the output page. when coming to 3rd grid, it had large amount of data, at that time the output page looks with first two gridviews and waiting for the 3rd grid.
What i want is, once i run the application all the five grids should get displayed at a time..
All you need to do is set the datasource on each gridview and databind each gridview.
there is no need to do anything in page render.
you will not get an answer for this until you can show what you are doing – and the only way to do that is to post an example of your markup / code