Ticket T214136
Visible to All Users

The RowStyle target type is not supported in the grid's optimized mode.

created 10 years ago
XAML
<!--<Setter Property="RowStyle"> <Setter.Value> <Style BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=RowStyle}}" TargetType="{x:Type dxg:GridRowContent}"> <Setter Property="MaxHeight" Value="40" /> </Style> </Setter.Value> </Setter>-->

The RowStyle target type is not supported in the grid's optimized mode. Either disable the optimized mode or change the target type to RowControl.

Hi, I am getting this error after upgrading to v2014 vol 2.5

Answers approved by DevExpress Support

created 10 years ago (modified 9 months ago)

Hi,

The GridRowContent target type is not compatible with GridControl's Optimized Mode. To define a custom target type for this mode, define a style for rows in the following manner:

XAML
<Style x:Key="optimizedRowStyle" TargetType="{x:Type dxg:RowControl}" BasedOn="{StaticResource {x:Type dxg:RowControl}}" > ... </Style>

To learn more about styles in optimized mode, see the Optimized Mode Styles and Templates  help topic.

Thanks,
Michael

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.