Click here to Skip to main content
15,911,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
In my project I'm using a gridview with fixed header by setting the position proprty as 'absolute'. Header is getting fixed, but the first row of gridview is hiding behind the header. Is ther any solution for this problem?

Thank You.
Posted
Comments
AmitGajjar 13-Aug-12 4:10am    
can you post your code ? have you tried with margin to shift your gridview one row lower as first row is allocated by header?

Please check Gridview with Fixed Header[^] and Fixed Header in Gridview ASP.NET[^] for your requirements...
 
Share this answer
 
I've placed the gridview in a table.

<tr><td>
Header1
</td><td>Header2</td><td class="style26">Emp Name</td></tr>
<tr><td colspan="3"><div class="scroll">
<asp:GridView ID="GridView1" runat="server" ShowHeader="false" >
<Columns>

</Columns>

</asp:GridView></div></td></tr>
</table>


Thank You
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900