We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Style for HoveringBackground

Is there anyway I can change the color of the hovering background?

1 Reply

SC Saravanan C Syncfusion Team June 5, 2014 05:02 PM UTC

Hi Ed,

 

Thank you for contacting Syncfusion Support.

 

We have analyzed your requirement “to change the color of the hovering background”. You can achieve your requirement by setting the HoveringRecordCellBackground in style manager and setting the API ShowHoveringBackground=”True” in GridDataControl. Please refer the below code sample:

 

Code Sample[XAML]:

<syncfusion:GridDataControl ItemsSource="{Binding Items,Mode=TwoWay}"     

                                                ShowHoveringBackground="True"

                                                ListBoxSelectionMode="MultiExtended"

                                                Name="grid"

                                                AllowEdit="True"

                                                NotifyPropertyChanges="True"

                                                ColumnSizer="Star">

           

    <syncfusion:GridDataControl.VisibleColumns>

              <syncfusion:GridDataVisibleColumn MappingName="Property1"/>

              <syncfusion:GridDataVisibleColumn MappingName="Property2"/>

              <syncfusion:GridDataVisibleColumn MappingName="Property3"/>

              <syncfusion:GridDataVisibleColumn MappingName="Property4"/>

       </syncfusion:GridDataControl.VisibleColumns>

 

    <syncfusion:GridDataControl.StyleManager>

        <syncfusion:GridDataStyleManager>

            <syncfusion:GridDataStyleManager.RowAppearence>

                <syncfusion:RowAppearence HoveringRecordCellBackground="Red"/>

            </syncfusion:GridDataStyleManager.RowAppearence>

        </syncfusion:GridDataStyleManager>

    </syncfusion:GridDataControl.StyleManager>

 

</syncfusion:GridDataControl>

 

Please refer the following UG documentation link for HoveringRecordCellBackground.

UG Link: http://help.syncfusion.com/ug/wpf/grid/default.htm#!Documents/customizingthevaluec1.htm

 

Please let us know the provided solution helps you.

 

Thanks,

Saravanan C

 


Loader.
Live Chat Icon For mobile
Up arrow icon