Home Forums WPF controls Xceed DataGrid for WPF How to make DataGrid show only one DataRow in CardView

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22784 |

    Like the title, I can set CardView.CardWidth as DataGrid.Width, but there dosn’t exist CardView.CardHeight property to control the height of CardView. Thanks

    Imported from legacy forums. Posted by isurge (had 1846 views)

    Xceed Support
    Member
    Post count: 5658

    If you know the size of the DataGridControl in advance, you can create an implicit style for DataRow and assign the desired size of the card in the style:

    <code>
    <Window>
    <Window.Resources>
    <Style TargetType=”{x:Type xcdg:DataRow}”>
    <Setter Property=”Width” Value=”250″/>
    <Setter Property=”Height” Value=”250″/>
    </Style>
    </Window.Resources>

    <xcdg:DataGridControl/>
    </Window>
    </code>

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2886 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.