Home Forums WPF controls Xceed DataGrid for WPF Readonly field in different row

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

    Can I get the way to do the following things in XCeed datagrid?

    How can I set readonly field for some of the row in the datagird according to its content?

    Thanks for your help.

    Imported from legacy forums. Posted by yingnan (had 549 views)

    Xceed Support
    Member
    Post count: 5658

    You can do so by creating a style for DataRow and place some DataTriggers in it…

    Example, if I want to color the row Red when the “IsRed” property of the data item is true:

    <Style TargetType=”{x:Type xcdg:DataRow}”>
    <Style.Triggers>
    <DataTrigger Binding=”{Binding IsRed}” Value=”True”>
    <Setter Property=”Background” Value=”Red” />
    </DataTrigger>
    </Style.Triggers>
    </Style>

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

    User (Old forums)
    Member
    Post count: 23064

    is this possible in code behind?

    Imported from legacy forums. Posted by David (had 3214 views)

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