Results 1 to 5 of 5

Thread: DataGrid with Fixed header & scroll in ASP.NET

  1. #1
    Join Date
    Jan 2009
    Posts
    36

    DataGrid with Fixed header & scroll in ASP.NET

    Hi,
    Anyone know about the opensource GridView Extension with scroll & fixed header?
    It must work on different browsers too.

    Thanks,

  2. #2
    Join Date
    May 2008
    Posts
    26

    Re: DataGrid with Fixed header & scroll in ASP.NET

    Hey you can use a second DataGrid for header & place it over the first one.

    The gridview could be placed in a scrolling DIV area.

    <table>...<table>
    <div style="width: 400px; height: 400px; overflow: auto;">
    gridview
    </div>

    I hope this helps!

  3. #3
    Join Date
    May 2008
    Posts
    27

    Re: DataGrid with Fixed header & scroll in ASP.NET

    check this out

    http://www.codeguru.com/columns/vb/article.php/c14209/
    and
    Matt Dotson's .Net Tips and Tricks

    http://blogs.msdn.com/mattdotson/ar...sp-net-2-0.aspx

    hopes this help

  4. #4
    Join Date
    Jun 2008
    Posts
    97

    Re: DataGrid with Fixed header & scroll in ASP.NET

    Please look at this
    http://www.codeproject.com/KB/webfor...llingGrid.aspx

    I hope this helps you!

  5. #5
    elizas Guest

    Re: DataGrid with Fixed header & scroll in ASP.NET

    One workaround is to have a separate table control to show the header elements and hide the actual header of the grid.Now put the grid inside a div or panel with scrollbar property.But that takes extra effort to have a proper alignment.Each cell of the header table should be aligned with each cell of the grid.The other work around is to fix the header of the grid in such a way that scrolling down shouldnt hide the header of the grid.Using stylesheet we can achieve that.
    Add the following style in your code and assign the grid view or datagrid header style css.

    .fixedHeader
    {

    font-weight:bold;

    position:absolute;

    background-color: #006699;

    color: #ffffff;

    height: 25px;

    top: expression(Sys.UI.DomElement.getBounds(document.getElementById("panelContainer")).y-25);

    }
    Last edited by rupesh; 10-02-2010 at 11:31 PM. Reason: Link Removed

Similar Threads

  1. Connect USB 3.0 front case panel header to motherboard w/o a header?
    By Dogs-Day-Out in forum Motherboard Processor & RAM
    Replies: 4
    Last Post: 14-04-2012, 07:02 PM
  2. Trouble with simplying a fixed cost/fixed duration project plan
    By stewart AFTS in forum Microsoft Project
    Replies: 3
    Last Post: 20-02-2012, 08:02 PM
  3. Replies: 3
    Last Post: 25-11-2010, 08:18 AM
  4. IIS7: Add expires header or cache-control header
    By quota in forum Software Development
    Replies: 3
    Last Post: 06-06-2009, 07:45 PM
  5. How to Export datagrid to pdf
    By Integer in forum Software Development
    Replies: 3
    Last Post: 17-03-2009, 07:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,545,812.12715 seconds with 17 queries