C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Silverlight »

Datagrid Row problem


Posted Date: 30 Oct 2009      Posted By: vijayakumar      Member Level: Silver     Points: 1   Responses: 0



Hello Friends,

I have a problem in silverlight datagrid.
I want the rowbackgroud to "#FFCECBCB" so I added the below template, the background colour problem is solved, but i when the horizontal scroll bar is moved the grid header and the row are not in sync... Could any one guide me...


Style template Code:
====================


<Style x:Key= "DataGridRowStyle" TargetType="data:DataGridRow">
<Setter Property="IsTabStop" Value="False" />
<Setter Property="Background" Value="#FFCECBCB" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="data:DataGridRow">
<localprimitives:DataGridFrozenGrid Name="Root">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<localprimitives:DataGridCellsPresenter Name="CellsPresenter"/>
<Rectangle Grid.Row="1" Name="BottomGridLine" Height="1"/>
</localprimitives:DataGridFrozenGrid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>



Regards,
Vijay





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply
You must Sign In to post a response.
Next : Rotate the image based on mouse moving on over the image URGENT!!
Previous : Can i develop realtime applications on silverlight using unlicensed version of silver ligh
Return to Discussion Forum
Post New Message
Category: Silverlight

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use