Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2335
RowSelectorSettings Style Setting Problem
posted

Hi,
Can you help me to define a style in app.xaml RowSelectorSettings like:
 <Style x:Key="RowSelector" TargetType="igGrid:RowSelectorCellControl">
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="0,0,0,0"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="FontFamily" Value="Impact"/>
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="BorderBrush" Value="Gray"></Setter>
            <Setter Property="BorderThickness" Value="1"></Setter>-->           
            <Setter Property="Background" Value="Transparent"></Setter>
        </Style>

and to be used in page like:
 <igGrid:XamWebGrid.RowSelectorSettings>
              <igGrid:RowSelectorSettings Visibility="Visible" EnableRowNumbering="True" Style="{StaticResource RowSelector}">
              </igGrid:RowSelectorSettings>                   
 </igGrid:XamWebGrid.RowSelectorSettings>


I tried a lot but failed to find any detailed example or reference to accuplish this.

I also tried following in code but it only works with alternate rows:

Style s = new Style(typeof(Infragistics.Silverlight.Controls.Primitives.RowSelectorCellControl));
s.Setters.Add(new Setter(Infragistics.Silverlight.Controls.Primitives.RowSelectorCellControl.BackgroundProperty, new SolidColorBrush(Colors.LightGray)));
myGrid.RowSelectorSettings.Style = s;


I specifically wants to apply Grid Header Style to RowSelector. Is it possible?

Thanks

 

 

Parents Reply Children
No Data