Data Controls :: Fixed GridView Header With Vertical Scroll
Jun 3, 2013
i want to add scroll with fixed header in gridview below is my code:
<div class="fontInside" style="height:300px; background-color:#eeeeee; overflow:scroll;border:1px; border-color:#d4d4d4 ;border-collapse:collapse; width:100%">
<asp:GridView ID="gvAccounts" runat="server"
CssClass="mGrid" AutoGenerateColumns="False"
GridLines="None" >
<AlternatingRowStyle CssClass="alt" />
<HeaderStyle CssClass="fontInside"/>
<EmptyDataTemplate>
[code]...
View 1 Replies
Similar Messages:
Dec 23, 2015
We use a responsive gridview, that gets bigger if you maximize the window. I tried to use your solution but either the gridview is responsive or the header stays at his position.
View 1 Replies
Jul 17, 2012
I have gridview placed inside panel and allowed paging. I have used the code which is in the link URL...The problem is with the alignment. Is there any solution for this?
View 1 Replies
May 7, 2015
i need to add vertical as well as horizontal scroll bar to grid view. i have read your artical about adding vertical scroll bar. how to add horizontal scroll bar ??
View 1 Replies
Sep 29, 2013
I had created one gridview with fixed header. I used java script for fixed header as follows:
<script type="text/javascript" language="javascript">
$(document).ready(function() {
View 1 Replies
Dec 30, 2010
I want fixed header for a gridview.
I tried many examples.But i did not get.
How to do it.
View 5 Replies
Jun 4, 2010
I am able to put gridview inside asp:panel and scrolling works too. But the moment I down, the header of gridView scrolls above inside the panel and gets hidden.
I just want to scroll rows, not the header. How can I do that?. Following is what I am using.
On a side note, I have tried to wrap gridView in DIV but div doesn't show the scroll bars in the first load for some reason.
[code]....
View 2 Replies
Jan 24, 2016
I read article in [URL]..... This is working very well but I want to select row in gridview. When I select a row, gridview scrolling top, I want, it scroll which row I select. How can I do this?
View 1 Replies
Mar 26, 2016
I came across a page that showed a solution for freezing the top (header) row of a gridview and allowed it to be scrollable. Here is the article: [URL] ....
It works and I was able to freeze the top row! However, I have a nested gridview ("gridview2") within that gridview ("gridview1") and I need to freeze it's header row...but I am encountering the following compilation error: "The name 'gridview2' does not exist in the current context"
I have tried many approaches to solve this, including calling the javascript function on the button event in which gridview2 is displayed, however I receive the compile error every time.
Here is the code that is causing the error:
<script type="text/javascript">
function gridlock() {
var GridId = "<%#gridview2.ClientID %>";
View 1 Replies
Jul 17, 2015
[URL]
i just wanted to fixed 2 rows of headertemplate. how can i do that using jQuery?
View 1 Replies
Jan 16, 2014
Scrollable GridView with Fixed Headers inside ASP.Net UpdatePanel using jQuery Plugin. I have one more question in that. How to adjust the width of the columns headers because for some of my gridviews the headers not showing the proper format. in the gridview I gave HorizontalAlign="Left" and in the columns I gave
<asp:BoundField DataField="XXX" HeaderText="XXX" ItemStyle-Width="150px" HeaderStyle-HorizontalAlign="Left" />
It's not showing in the correct fomart. header is coming to the left side and data is coming to the right side...
View 1 Replies
Dec 27, 2012
I have a form with multiple update panels in one form. here i have a gridview with update panel where jqery scrolable with fixed header is not working. i saw your post where IsInUpdatepanel: true
View 1 Replies
Apr 24, 2010
my page contains gridviews, textboxes, comboboxes... : one of the gridview is hidden; the user needs to press a button to make it visible (it is inside a panel that contains a vertical scroll, and have a header and a footer, and this last panel is contained in an update panel).
i want to make the header and footer fixed while scrolling. i need this to work in ie and in firefox the latest versions.
View 7 Replies
Oct 21, 2010
here my requirement is datagrid scrollbar which is smaller than the datagrid height... I need little scrollbar at top vertical possition...
View 3 Replies
Mar 10, 2010
i tried and tried and maybe searched the entire web... but i could not find anything good for my asp.net gridviewcontrolwhich whill fix the header and allow sorting. but most of all work in all browsers and not just IE and Firefox alone.... chrome was the main problem nothing worked...this was one option:
.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10;
}
[code]...
View 1 Replies
May 24, 2010
I know this topic has been asked, but the posts are all out of date, or not functional on IE8. In brief we basically want to do the excel style locking of column headers in a GridView. I have seen a couple of solutions one jquery+ css(setExpression) which doesn't work in IE8. And another that uses ajax extensions, yet again doesn't work in IE8.
I have been through every solution in the below link and have yet to find a working implementation for IE8. [URL]
View 3 Replies
Oct 3, 2010
How Can We Have A SCROLLABLE GridView With Fixed Header???(in vs 2008 - asp.net with c#) Fixed Header is my problem! i test many ways for doing that and see some live demos / but they did not work. can u show me a simple way 4 doing that with an example?
View 2 Replies
Mar 19, 2012
Trying to implement the site solution but it does not work"Scrollable Gridview with fixed header using Jquery plugin"
View 1 Replies
Nov 6, 2010
I have a grid-view placed inside a div and scroll bar is there. I want to set the grid view header fixed and while scrolling only the content will be scrollable. How can do this..
View 2 Replies
Nov 16, 2010
I want to set header column width for grid view. I tried HeaderStyle-Width="30px". But it is depending on Item columns. The column width is setting based on item value. But I want fixed width even if it has value or empty.
View 1 Replies
Jul 27, 2010
I have a gridview within a panel. As I am using ASP Content, and the width of the grid view will auto extend to the left, and beyond the default IE width, and I got to scroll to left using the horizontal scroll bar.
Now, I wanted to fixed the length of the Panel to maybe 800px or 900px. With this I wanted to add a section to the Panel, and put the grid view within the section, and I wanted this section to have the ability to scroll horizontally.
In short, I do not want the Ie's scroll bar, instead, I want a scroll section within a Panel.
View 4 Replies
Jan 16, 2011
how to make fixed header when data is empty
View 3 Replies
Jan 31, 2011
How to make the gridview header to be fixed on overflow. I used this cssclass for Header Style but not working properly with all browsers.
Code:
position: relative; top: 0;
View 1 Replies
Mar 14, 2011
I am trying to implement a fixed header feature addition to an existing sub class of GridView, SGridView.My issue is that with the solution listed below, the scroll bar appears below the header row and looks tacky. I would prefer that the scrollbar runs vertically through the header to the footer. The only issue is that this means that the first couple of rows would be covered by the header because the scrollbar height isn't accounting for the inclusion of the header row (I assume this is a side effect of absolute positioning). Any thoughts on how to correct that?
My solution consists of the following:
<div class="IEScrollDiv">
<table class="GridView">
<thead>
[code]...
More or less, added additional code into the Render() method to wrap the table in a div that can scroll. Nothing too fancy. Then I configured the table to render , , and tags for accessibility.Since adding scrolling to tbody is undefined in IE, I could not utilize it to create a fixed header (lame). In addition, the expression css rule has been deprecated from IE8 so I couldn't use that approach either (plenty of tutorials online utilizing it).So, I added javascript to to absolutely position the header row, via it's class GVHeader.
View 1 Replies
Sep 15, 2010
I want user to be able to scroll in a div to see all the rows. But setting div's overflow property to true. When I starts scrolling header goes away. Is it possible to make header static. So that I can sort or do any kind of other operations.
Currently I tried to take fixed table above grid and hiding grids header. But on editing it is not expanding as the grid is expanding.
View 1 Replies