Home Forums WPF controls Xceed DataGrid for WPF CellPadding Equivilant?

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

    Whats the cellpadding equivilant from HTML to WPF data grid? I have many rows and it seems that’s there a 2px padding around each cell, however not explicit properties are set in the xaml. Any pointers?

    Imported from legacy forums. Posted by MattCheshire (had 1272 views)

    User (Old forums)
    Member
    Post count: 23064

    Try setting the DataCell Style to what you please 🙂

    Here’s TargetType Style that will hit all the grids in the Window:

    <Window x:Class=…

    xmlns:xcdg=”http://schemas.xceed.com/wpf/xaml/datagrid&#8221;

    >

    <Window.Resources>

    <Style TargetType=”{x:Type xcdg:DataCell}”>
    <Setter Property=”Padding” Value=”10″/>
    </Style>

    </Window.Resources>

    Ah… the beauty of WPF and the nice Xceed Documention 🙂

    Imported from legacy forums. Posted by Richard (had 2893 views)

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