Hi,
I am using the following code to allow fixed headers
ReportView.DataSource = dt;// data table ReportView.DataBind();
ReportView.DisplayLayout.UseFixedHeaders = true;
But I cant see any data in the web grid. However, whe I export to excel, all the data gets exported to excel, which means that the data is there for some reason, its not visible (like setting background, border and forecolor everything to white).
When I comment the last line however, I see the data.
Any help will be highly appreciated.
Thanks,
Sameer
This is a legitimate issue. I have the same problem and see that the previous post is the same issue (Master page). However I would add that this only happens when I publish my project to the server. Locally it works as expected. Any thoughts ? Anyone?
I have found this issue when I am using master pages.
When I use a regular page, the data loads correctly when I have the UseFixedHeaders (UFH) flag set to true. If I place the control on a content page (one that uses a master page), the data is missing with the UFH flag set to true. If the UFH flag is set to false, the data is displayed.
I have confirmed that the data is on the page (view page source), it is just that it is not showing on the screen.
I believe that this is to do with the fact that master pages manipulate the control ID's and the control is incapable of dealing with this.
I haven't figured out a way to get this to work, but have reverted to regular pages for now, but this might help someone else to figure out the steps that need to be taken to get this to work.
I too am having this problem, except I am trying to make both my Headers and Footers stationary (which they are). But when the grid renders, the data rows are not showing. I am also using a Master Page/Content Page setup.
One thing I did notice is that if my dataset was small, and didn't fill the entire height of the grid, it would not show up until I tried to adjust a column width. But the grid rows would be slightly skewed, and did not line up properly. This cascaded down to the footer as well, where I display a total of the above rows.
But, if my data set was large enough to fill the entire height grid, it would show up right away, and my headers, footers and the first column were fixed (like I wanted them to be). Scrolling both horizontally and vertically worked properly.
So this sounds like a bug with the WebGrid module. My next step is to issue a bug fix request.
Thanks, Mark
Did anyone find a solution to the data disappearing problem.
I have the exact same issue. As soon as I do UseFixedHeaders = True, my data disappears from the grid. Weird thing is when I pick a value from my filter in the column header, all the data shows up.
Another discovery.... my content is inside a masterpage - content placeholder. When I put my my aspx contents into a regular web page (without the content placeholder), then the fixed header stuff works perfect.
So something to do with masterpages??
Hello,
Please, take a look at the following forum thread for more insight on this issue
http://forums.infragistics.com/forums/t/14517.aspx
For information on whether this is a bug and if it is fixed I think it is best to contact developer support directly.