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
Hello Sameer,
I am trying to reproduce the problem (using the latest 2008.3) release, but unfortunately to no avail. In every case I tried, UseFixedHeaders worked as expected for this feature and the grid was successfully shown.
Furthermore, it is really weird that UseFixedHeaders has this effect on the grid - are you sure that this is the only line of code the interferes in the scenario? Can you isolate a very simple grid and see how UseFixedHeaders affects it?
Thanks for your quick response.
Sorry for not mentioning this earlier, I am using 2007.3 version.
Yes, I have managed to replicate the issue in a very simple case.
I have the following code in the Page Load event
UltraWebGrid1.DisplayLayout.UseFixedHeaders = true; // uncommenting this makes the data visible again
UltraWebGrid1.DataSource = getTable(); // any sample table
UltraWebGrid1.DataBind();
{
DataTable dt = new DataTable();
dt.Columns.Add("Col2");
row["Col1"] = "Col1 Data " + i;
dt.Rows.Add(row);
}
I have not changed a single porperty after adding the grid to the page.
<head runat="server">
</head>
<body>
<form id="form1" runat="server">
<div>
<igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server">
</igtbl:UltraWebGrid>
</div>
</body>
</html>
Am I missing something? I need to demo the Grid capabilities to my manager today, and I really need to get this to work. I appreciate your help.
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.
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??
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
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.
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?