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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Style for HoveringBackground

Thread ID:

Created:

Updated:

Platform:

Replies:

116522 Jun 4,2014 07:15 PM UTC Jun 5,2014 05:02 PM UTC WPF 1
loading
Tags: GridDataControl
Ed
Asked On June 4, 2014 07:15 PM UTC

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

Saravanan C [Syncfusion]
Replied On 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

 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;