If you want the gridview header fixed and make gridview scrollable you can try to use ScrollableGridView
plugin.
The code:
<script src="ScrollableGridPlugin_ASP.NetAJAX_3.0.js"></script>
<script type="text/javascript">
var position = 0;
$(document).ready(function () {
$('#<%=GridView1.ClientID %>').Scrollable({
ScrollHeight: 300,
IsInUpdatePanel: true
});
});
</script>
The result:
Best regards,
Sam
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
61 Points
189 Posts
How to Make gridview header fixed when scrolling in Master Page
Dec 24, 2019 02:45 AM|maideen5|LINK
Hi
I have issue to fix header in scrolling in master Page
Please advice me.
Thank you
maideen
It is my HTML Code
Contributor
3370 Points
1409 Posts
Re: How to Make gridview header fixed when scrolling in Master Page
Dec 24, 2019 06:52 AM|samwu|LINK
Hi maideen5,
If you want the gridview header fixed and make gridview scrollable you can try to use ScrollableGridView plugin.
The code:
The result:
Best regards,
Sam
Member
61 Points
189 Posts
Re: How to Make gridview header fixed when scrolling in Master Page
Dec 25, 2019 02:15 AM|maideen5|LINK
Hi Samwu
thank you for prompt reply
It works fine in normal asp.net page. But it is not work on Asp.net page with MasterPage.
please advice me
Thank you
Maideen
Contributor
3370 Points
1409 Posts
Re: How to Make gridview header fixed when scrolling in Master Page
Dec 25, 2019 03:05 AM|samwu|LINK
Hi maideen5,
It also works fine in child page.
The code:
Best regards,
Sam