<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX UI</title><link>http://forums.asp.net/1008.aspx</link><description>Here you can discuss UI-related issues with AJAX such as controls and client-side functionality including Silverlight controls for ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1588863.aspx</link><pubDate>Wed, 21 Feb 2007 19:32:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1588863</guid><dc:creator>klgrube</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1588863.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1588863</wfw:commentRss><description>&lt;p&gt;Yes, thank you.&amp;nbsp; I did try that and it still isn't working.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Karen&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1588789.aspx</link><pubDate>Wed, 21 Feb 2007 18:37:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1588789</guid><dc:creator>jmaag</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1588789.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1588789</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;klgrube:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm testing this out as well and I'll let you know how it goes.&amp;nbsp; I have exactly the same problem.&amp;nbsp; But, I do have one small suggestion, however.&amp;nbsp; Try setting the following at the&amp;nbsp;top of your page source&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;&amp;lt;%&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;@&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;Page&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;MaintainScrollPositionOnPostback&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;="true"&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;Language&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; . . .&lt;/font&gt;&lt;font size="2"&gt;. . . . .&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;or in the System.Web section of your WebConfig . . .&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;system.web&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;pages&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;maintainScrollPositionOnPostBack&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;"&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;"&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;. . . &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;That may help.&amp;nbsp; I set this in mine and I'm going to test the above technique in just a few minutes and I'll let you know . . .&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;Karen&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;Isn't &lt;font color="#ff0000" size="2"&gt;MaintainScrollPositionOnPostback&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt; specific to the page scroll bars themselves? I'm not sure this would work, but definitely something interesting to try.&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1588767.aspx</link><pubDate>Wed, 21 Feb 2007 18:24:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1588767</guid><dc:creator>klgrube</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1588767.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1588767</wfw:commentRss><description>&lt;div class=ForumPostContentText id=ctl00_ctl01_bcr_ctl00___PostRepeater_ctl01_PostViewWrapper&gt;
&lt;p&gt;&lt;span id=ctl00_ctl01_bcr_ctl00___ForumName&gt;&amp;nbsp;Thanks!&amp;nbsp; You're right, and I actually do have my own post on this matter:&amp;nbsp; Sorry about the misspelling in the title, but here's the name of the post.&amp;nbsp; I've just added some code that shows the unwanted scrolling behavior really clearly . . .&amp;nbsp; I hope that helps.&amp;nbsp; Here's the title of my post:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maintin scroll position in gridview with fixed header panel on select/edit &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Feel free to take a look and see if you can get it&amp;nbsp;to work.&amp;nbsp; I'll gladly award points and&amp;nbsp;all of that.&amp;nbsp; That would be cool!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1587922.aspx</link><pubDate>Wed, 21 Feb 2007 09:15:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1587922</guid><dc:creator>Hoonius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1587922.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1587922</wfw:commentRss><description>&lt;p&gt;Karen&amp;nbsp;&lt;/p&gt;&lt;p&gt;i'm not even sure you could use getElementByID in CSS.&amp;nbsp; it uses the DOM rather than full-blown javascript so i've been working the object out in relation to it's parentNode&lt;/p&gt;&lt;p&gt;Cells to Rows to Tables to Containers etc, up the tree till is get the control i want to be next to.&amp;nbsp; Also, due to the fact you're using master pages, a control's ID in .net isn't the controls ID on the browser because .net wraps it up in ContetnPlaceholder001_SomeOtherJibWrapper003_YourOriginalID so youi'll have a hard time trying to reference a control by ID anyway i think.&lt;/p&gt;&lt;p&gt;Also, maybe people are reluctant to post on this thread for because you'll not be able to award points as it's someone else's thread.&amp;nbsp; I've no problem, as you can see, but i think it's weird that nobody else has even commented to date.&amp;nbsp; who knows&lt;/p&gt;&lt;p&gt;&amp;nbsp;I can PM you a link of my current app on the test server so you can see what i mean by Fixed Table Header in a div which saves the scroll position.&amp;nbsp; i can't post the link publically however but i guess one or two extra hits isn't gonna break the bank :¬)&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1587875.aspx</link><pubDate>Wed, 21 Feb 2007 08:24:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1587875</guid><dc:creator>stmarti</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1587875.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1587875</wfw:commentRss><description>&lt;p&gt;Hi Karen,&lt;/p&gt;&lt;p&gt;I have some tips, but I think there is no easy solution for you. You can try:&lt;/p&gt;&lt;p&gt;- For the id problem you could try &lt;/p&gt;&lt;p&gt;document.getElementById( '&amp;lt;%= yourcontrol.ClientID %&amp;gt;' ) ... or similar.&lt;/p&gt;&lt;p&gt;See the docs what is the ClientID property, if you never used that.&lt;/p&gt;&lt;p&gt;/ document.getElement&lt;b&gt;b&lt;/b&gt;yID , hope that is only typos in your post &lt;img src="http://forums.asp.net/emoticons/emotion-1.gif" alt="Smile" /&gt; /&lt;br /&gt;&lt;/p&gt;&lt;p&gt;- You can get info how or where to place the scroll maintain javascript in the suggestion in this therad (see Hoonius' post)&lt;/p&gt;&lt;p&gt;- There is tons of css and other solution for a fixed th in a table, I've never use them because of the css and other hacks. Maybe you can put a dummy (empty) gridview before the updatepanel? Or use a repeater to render your grid, it's hard work but you have total control also.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;- For the general scroll maintain problem you could try one of the javascript solution or the surrounding div on this thread, but first try to simplify your page: try it without masterpage/multiview etc. This is pain, but maybe the only way to detect the source of your scroll problem.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1586815.aspx</link><pubDate>Tue, 20 Feb 2007 16:34:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1586815</guid><dc:creator>klgrube</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1586815.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1586815</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; The whole point of all of this is to keep the gridview's header in a fixed position while the remainder of the grid is scrollable.&amp;nbsp; When the gridview is rendered in the html, it is rendered as a table.&amp;nbsp;&amp;nbsp;It is&amp;nbsp;the settings in the 'th' style&amp;nbsp;that keep&amp;nbsp;the header rows of the gridview displayed when you scroll within the panel or div.&amp;nbsp; This combination of the 'th' style,&amp;nbsp;which is used by the&amp;nbsp;gridview when it is rendered,&amp;nbsp;and the 'fixedHeader' style for the panel&amp;nbsp;works as long as you don't hit any key that causes a postback, like the 'edit' button.&amp;nbsp; For some reason, the gridview gets completely re-rendered on postback, and either the header disappears, if the panel is outside of the update panel, or the scroll position returns to the top of the panel, if the panel is inside of the update panel.&amp;nbsp; Neither of these is acceptable.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; All I want to do is keep the gridview header displayed when the person scrolls down inside the panel.&amp;nbsp;&amp;nbsp;And, I&amp;nbsp;want to KEEP&amp;nbsp;the header displayed and leave the scrollbar on the edited or selected row when the user hits the 'edit' button!&amp;nbsp; Think of it like&amp;nbsp;a frozen window in Excel, where the header row does't move.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; So, what I'm looking for here is a way to return the scroll position within the panel to the row it was on&amp;nbsp;when the&amp;nbsp;person hit the 'edit' button, that is&amp;nbsp;after postback.&amp;nbsp; &amp;nbsp;I've tried setting focus on the edited row.&amp;nbsp; That doesn't work.&amp;nbsp; I've tried several javascript solutions, none of which works yet.&amp;nbsp;And yes, I do have maintain scrollpositiononpostback set!!!!&amp;nbsp; The best&amp;nbsp;I can get is&amp;nbsp;the scrollbar returning to the top of the panel and the user having to scroll back down to find their&amp;nbsp;edited row. &amp;nbsp;Here's what may be complicating the situation:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; First of all, I'm using master pages, and yes I have an instance of scriptmanager in the master page.&amp;nbsp;The panel, update panel and gridview are all on the content page.&amp;nbsp; And, the gridview, update panel, and panel are all located inside the first view of a multiview.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; For some reason, I'm not able to correctly tell any javascript solution how or where&amp;nbsp;to locate the panel control.&amp;nbsp; I'm not able to reference that control for some reason within the javascript.&amp;nbsp; No matter how I try to reference it, by using document.getElementbyID or even by directly trying to hard code it in, nothing works.&amp;nbsp; I always get an 'empty or does not exist' javascript error.&amp;nbsp; I just&amp;nbsp;can't seem to figure out&amp;nbsp;how to reference that panel&amp;nbsp;control, located as it is on the content page and inside the multiview.&amp;nbsp; I think if I can do that, a javascript solution may work.&amp;nbsp; Truthfully though, I'm not even sure where to place the javascript on a content page.&amp;nbsp; Do I put it right below the 'content' starting tag?&amp;nbsp; That seems to work, though I do get that javascript error where it can't find the pane control.&amp;nbsp;And&amp;nbsp;yes, I've tried using a&amp;nbsp;div instead of a panel, with the same result.&amp;nbsp; &amp;nbsp;How do I reference the panel control, assuming it is called 'Panel1', within javascript on a content page like this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any additional thoughts or possible solutions?&amp;nbsp; And no, paging is not a solution.&amp;nbsp; My users hate paging.&amp;nbsp; Even with the update panel. paging takes forever and isn't a decent option.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;Karen&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1586202.aspx</link><pubDate>Tue, 20 Feb 2007 08:59:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1586202</guid><dc:creator>stmarti</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1586202.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1586202</wfw:commentRss><description>&lt;p&gt;Hi Karen,&lt;/p&gt;&lt;p&gt;I modified your pseudo code similar to my app's layout:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;asp:Panel id="headerPanel" runat="server"&amp;gt;Header content&amp;lt;/asp:Panel&amp;gt;&lt;br /&gt;
&amp;lt;asp:Panel id="scrollablePanel" class="fixedheader" runat="server"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:UpdatePanel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gridview&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Gridview&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/asp:UpdatePanel&lt;br /&gt;&amp;lt;/asp:Panel&amp;gt;&lt;/p&gt;&lt;p&gt;I don't know what for this:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;table th&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; border-width: 4px;&lt;br /&gt;&amp;nbsp;&amp;nbsp; border-color: Black;&lt;br /&gt;&amp;nbsp;&amp;nbsp; background-color: Gray;&lt;br /&gt;&amp;nbsp;&amp;nbsp; position: relative;&lt;br /&gt;&amp;nbsp;&amp;nbsp; top: expression(this.parentNode.parentNode.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parentNode.scrollTop-1);&lt;br /&gt;} &lt;/p&gt;&lt;p&gt;but probably unnecessary, and not valid css at all.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;"But, when I put the Panel inside of the Update Panel, the scroll returns to the top of the gridview" &lt;/p&gt;&lt;p&gt;This is normal because the scrolling div is recreated each partial postback, therefore it "scrolls" to top.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1585712.aspx</link><pubDate>Mon, 19 Feb 2007 23:08:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1585712</guid><dc:creator>klgrube</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1585712.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1585712</wfw:commentRss><description>&lt;p&gt;Please&amp;nbsp;help!!&amp;nbsp; I'm&amp;nbsp;getting really desperate here, and actually more than a little upset.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ALL I WANT TO DO (she screams)&amp;nbsp;. . . . .&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is have gridview with a fixed header where everything below the header scrolls.&amp;nbsp; I know how to do that using a panel per Paul Kimmel's article&amp;nbsp; at &lt;a href="http://www.developer.com/net/asp/article.php/3585911"&gt;http://www.developer.com/net/asp/article.php/3585911&lt;/a&gt;.&amp;nbsp;&amp;nbsp; This works fine as long as you don't have an edit button on the gridview.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; BUT I want the header to stay where it is and the scroll position of the rest of the gridview to NOT change its place when a user hits the 'Edit' button!!!&amp;nbsp;&amp;nbsp; Is that too much to ask?&amp;nbsp; Gee . .&amp;nbsp;&amp;nbsp; a fixed header gridview that DOESN'T lose the scroll position of the selected or edited row.&amp;nbsp; What a concept.&amp;nbsp; I've found references to each of these ideas separately, but never found a combined solution.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; How do I accomplish that?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; So . . .&amp;nbsp; right now I have a panel that has the following styles associated with it&lt;/p&gt;
&lt;p&gt;.fixedHeader&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; overflow: auto;&lt;br /&gt;&amp;nbsp;&amp;nbsp; height: 350px;&lt;br /&gt;}&lt;br /&gt;table th&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; border-width: 4px;&lt;br /&gt;&amp;nbsp;&amp;nbsp; border-color: Black;&lt;br /&gt;&amp;nbsp;&amp;nbsp; background-color: Gray;&lt;br /&gt;&amp;nbsp;&amp;nbsp; position: relative;&lt;br /&gt;&amp;nbsp;&amp;nbsp; top: expression(this.parentNode.parentNode.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parentNode.scrollTop-1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;and a page that looks kind of like . . .&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:Panel class="fixedheader"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:UpdatePanel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gridview&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Gridview&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/asp:UpdatePanel&lt;br /&gt;&amp;lt;/asp:Panel&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; When&amp;nbsp;I have the fixedHeader Panel on the outside of the UpdatePanel and the user hits the Edit button, the&amp;nbsp;gridview retains its scroll position but the fixed header disappears after postback.&amp;nbsp; But, when I put the Panel inside of the Update Panel, the scroll returns to the top of the gridview.&amp;nbsp; I really don't know what to do!!!&amp;nbsp; I don't know how to tell the Update panel that it's inside of a fixed header panel!!!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Please help!&amp;nbsp; I've literally been struggling with this for DAYS!!!!!&lt;/p&gt;
&lt;p&gt;Karen&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1584782.aspx</link><pubDate>Mon, 19 Feb 2007 10:32:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1584782</guid><dc:creator>Hoonius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1584782.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1584782</wfw:commentRss><description>&lt;p&gt;i did it was in isolation to my main project.&amp;nbsp; My current project uses masterpages and wraps the contentplaceholder inside an UpdatePanel, os i wrapped the UpdatePanel in a div as suggested by stmarti but the scroll position is lost when the page performs a callback.&lt;/p&gt;

&lt;p&gt;I've reverted back to &lt;a href="http://forums.asp.net/thread/1550277.aspx" target="_blank"&gt;my javascript solution&lt;/a&gt;  with a few tweaks, which i will post later today&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1584439.aspx</link><pubDate>Mon, 19 Feb 2007 00:21:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1584439</guid><dc:creator>klgrube</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1584439.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1584439</wfw:commentRss><description>&lt;p&gt;Okay . .&amp;nbsp;&amp;nbsp; I just tried adding in an update panel right between he gridview and the outer div, and Im still not able to get this to work.&amp;nbsp;The scroll position still returns to the top of the grid.&amp;nbsp; I'll check some more, but so far, no luck.&amp;nbsp; Let me know if you find out anything, please.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks!&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1584420.aspx</link><pubDate>Sun, 18 Feb 2007 23:48:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1584420</guid><dc:creator>klgrube</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1584420.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1584420</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm testing this out as well and I'll let you know how it goes.&amp;nbsp; I have exactly the same problem.&amp;nbsp; But, I do have one small suggestion, however.&amp;nbsp; Try setting the following at the&amp;nbsp;top of your page source&amp;nbsp;&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;&amp;lt;%&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;@&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#a31515 size=2&gt;Page&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;MaintainScrollPositionOnPostback&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="true"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Language&lt;/font&gt;&lt;font color=#0000ff size=2&gt; . . .&lt;/font&gt;&lt;font size=2&gt;. . . . .&lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt;&amp;nbsp;or in the System.Web section of your WebConfig . . .&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#a31515 size=2&gt;system.web&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;&lt;font color=#a31515 size=2&gt;pages&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;maintainScrollPositionOnPostBack&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;true&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&amp;nbsp;. . . &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;That may help.&amp;nbsp; I set this in mine and I'm going to test the above technique in just a few minutes and I'll let you know . . .&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;Karen&lt;/font&gt;&lt;/p&gt;&lt;font size=2&gt;&lt;/font&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1558822.aspx</link><pubDate>Thu, 01 Feb 2007 09:32:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1558822</guid><dc:creator>Hoonius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1558822.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1558822</wfw:commentRss><description>&lt;p&gt;this definitely works my end :¬)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'll compare this code to my non-working version i made yesterday and see what i've missed.&amp;nbsp; thanks very much for the example stmarti :¬)&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1558790.aspx</link><pubDate>Thu, 01 Feb 2007 08:55:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1558790</guid><dc:creator>stmarti</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1558790.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1558790</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have really no experience with the GridView control but I put together a small example just for fun. It maintains the scroll position for me.&lt;/p&gt;&lt;p&gt;What it does:&lt;/p&gt;&lt;p&gt;- has a simple gridview, only AutoGenerateEditButton = true is set in the codebehind&lt;/p&gt;&lt;p&gt;- it is bound to an arraylist (it is not an updateable datasource, but the edit link is displayed before each row and postback if you click it)&lt;/p&gt;&lt;p&gt;- each round trip I rebind the grid (it fills numbers 0-99 then you press edit it fills 99-0 and so on) just for "visualization"&lt;/p&gt;&lt;p&gt;- it handles the RowEditing in the codebehind, but do nothing&amp;nbsp;&lt;/p&gt;&lt;p&gt;- tested in ie6/firefox&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here it is, would you please check it?:&lt;/p&gt;&lt;p&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test3.aspx.cs" Inherits="ForumTest.test.test3" %&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br /&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" &amp;gt;&lt;br /&gt;&amp;lt;head runat="server"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptManager ID="TheScriptManager" EnablePartialRendering="true" runat="server" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;%= "Just testing that we have partial postback :) " + DateTime.Now.ToString( )&amp;nbsp; %&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID="btn" runat="server" text="Independent postback from gridview just for test"/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;div style="overflow: scroll; height: 200px;"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:UpdatePanel id="up1" runat="server" UpdateMode="Conditional"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Triggers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:AsyncPostBackTrigger ControlID="btn" EventName="Click" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Triggers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:GridView ID="grid1" runat="server" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:UpdatePanel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:UpdateProgress runat="server" DisplayAfter="0"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ProgressTemplate&amp;gt;&amp;lt;div style="position: absolute; top: 0; left: 0; background-color: Red;"&amp;gt;PROGRESS&amp;lt;/div&amp;gt;&amp;lt;/ProgressTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:UpdateProgress&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;using System;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.Collections;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.Security;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;using System.Web.UI.WebControls.WebParts;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;&lt;br /&gt;namespace ForumTest.test&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public partial class test3 : System.Web.UI.Page&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; private bool m_FlipState = false;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /// Gets or sets FlipState.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public bool FlipState&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; get&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return ( bool )( this.ViewState[ "m_FlipState" ] ?? m_FlipState );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.ViewState[ "m_FlipState" ] = m_FlipState = value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; protected override void OnInit( EventArgs e )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.grid1.RowEditing += new GridViewEditEventHandler( grid1_RowEditing );&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; base.OnInit( e );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Page_Load( object sender, EventArgs e )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.Collections.ArrayList myList = new ArrayList( );&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if( !this.FlipState )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for( int i = 0; i &amp;lt; 100; i++ )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; myList.Add( i.ToString( ) );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for( int i = 99; i &amp;gt;= 0; i-- )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; myList.Add( i.ToString( ) );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.FlipState = !this.FlipState;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.grid1.AutoGenerateEditButton = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.grid1.DataSource = myList;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.grid1.DataBind( );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; protected void grid1_RowEditing( object sender, GridViewEditEventArgs e )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // throw new Exception( "The method or operation is not implemented." );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1557513.aspx</link><pubDate>Wed, 31 Jan 2007 15:56:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1557513</guid><dc:creator>Hoonius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1557513.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1557513</wfw:commentRss><description>&lt;p&gt;i can't get this to work with a GridView :¬(&lt;/p&gt;&lt;p&gt;I have a gridview on a form, so i wrapped that inside an UpdatePanel and then i wrapped that up inside a div with the style attributes you specified above.&amp;nbsp; The div scrolls as you'd expect, but when i try and select or edit a row, the scroll moves back to the top of the div and i have to scroll down to get the item in view again.&lt;/p&gt;&lt;p&gt;I had it like this:&lt;/p&gt;&lt;p&gt;&amp;lt;div style="overflow:scroll"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;UpdatePanel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;GridView&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/GridView&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/UpdatePanel&amp;gt; &lt;br /&gt;&amp;lt;/div&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;so my gridview is nested inside and updatepanel and that panel is nested inside a scrollable div.&amp;nbsp; Any ideas?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Controlling Scrolling (ooh, I'm a poet)?</title><link>http://forums.asp.net/thread/1557486.aspx</link><pubDate>Wed, 31 Jan 2007 15:42:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1557486</guid><dc:creator>Hoonius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1557486.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1557486</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;stmarti:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;Hoonius:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;However, i'm keen to see if smarti's solution work as it's a bit overkill for something so (seemingly) simple&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;p&gt;Hi I'm using this approach from the beginning (when I first dropped an updatepanel on to a page), without problem. I have a div with overflow: scroll, fixed height and with (absolute positioning not necessary of course, "server side" div also not necessary), &lt;i&gt;inside&lt;/i&gt; that div there is the updatepanel. In that case the scroll position should be maintained by the browser during partial postbacks (when the content's "height" are similar during the postbacks, but that is true also for javascipt solutions).&lt;/p&gt;&lt;p&gt;This combo works for me: extreme complex nested repeaters inside the div, treeview (yes I'm know it'is not supported by ajax &lt;img src="http://forums.asp.net/emoticons/emotion-1.gif" alt="Smile" /&gt;) inside the div. I've never tried it with a gridview, because&amp;nbsp; I'm not using that control at all.&lt;/p&gt;&lt;p&gt;It works with IE6/IE7/firefox. Because the scrolling div is not manipulated by the updatepanel in my case (only it's child DOM elements are changing every postback), it would be a big browser rendering bug if it scolls to top (hopfully it not scrolls to the top, except when we have empty or less content which fit in the fixed height)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hi smarti&lt;/p&gt;&lt;p&gt;I just re-read my post and my meaning wasn't altogether clear.&amp;nbsp; I meant to say that &lt;i&gt;my&lt;/i&gt; solution was overkill with all it's javascript and event attaching etc.&amp;nbsp; I'll give your solution a try this afternoon and let you know my results as it looks to be a much cleaner way of maintaining the divs scroll position &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for the tip :¬)&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>