C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Showing Data Grid header as constant


Posted Date: 03 Aug 2006    Resource Type: Articles    Category: .NET Framework
Author: Roopesh RajendranMember Level: Gold    
Rating: Points: 10



This article explains a possible solution by adding a small style to the data gird header.



TOP: expression(document.body.clientHeight);



We can apply this by adding it to the style sheet and provide the class in the data grid header



Ex: in data grid


< Div>

< ASP: DATAGRID id="Id" runat="server" autogeneratecolumns="False" showheader="True" >

< HeaderStyle CssClass="GridHeaderScreen"> < /HeaderStyle>

< COLUMNS>

< ASP:BoundColumn DataField="field" HeaderText="Starting Date" < /ASP:BoundColumn>

< ASP:BoundColumn DataField="field" HeaderText="Starting Date" < /ASP:BoundColumn>

< /COLUMNS>

< /ASP: DATAGRID>

< /div>



And in the style sheet we can add the style class

.GridHeaderScreen

{



TOP: expression(document.body.clientHeight);



}



This enables us to show the header consistently on top while scrolling down the records





Responses

Author: sam    07 Aug 2006Member Level: Silver   Points : 0
TOP: expression(document.body.clientHeight);
this statement is not valid in style sheet...




Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Showing  .  Header  .  Data Grid  .  Constant  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Just In Time compiler (JIT) , working and its types.
Previous Resource: What is JIT (just in time)? How it works?
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use