.NET5 WPF FlexGrid Column Style

Posted by: info on 27 March 2021, 5:17 pm EST

  • Posted 27 March 2021, 5:17 pm EST

    Hello.

    .NET5 WPF FlexGrid has no CellStyle.
    How apply a style to column, instead of "CellStyle="{StaticResource ColumnStyle}" ?

    In this code, TextBlock's Style Binding is better?


    <c1:FlexGrid>
    <c1:FlexGrid.Columns>
    <c1:GridColumn>
    <c1:GridColumn.CellTemplate>
    <DataTemplate>
    <TextBlock Text="{Binding Path=Text1}" />
    </DataTemplate>
    </c1:GridColumn.CellTemplate>
    <c1:GridColumn.CellEditingTemplate>
    <DataTemplate>
    <TextBox Text="{Binding Text1}" />
    </DataTemplate>
    </c1:GridColumn.CellEditingTemplate>
    </c1:GridColumn>
    </c1:FlexGrid.Columns>
    </c1:FlexGrid>
  • Marked as Answer

    Replied 30 March 2021, 5:38 pm EST

    Hi,

    CellStyles for .NET5 WPF FlexGrid are part of our roadmap. Though there's no exact ETA, hopefully you should see support for them in the later half of this year.

    Till then as you've mentioned you can use the TextBlock style bindings.

    Regards,
    Ankit

    prj_FlexGrid_GL6780.zip
  • Replied 31 March 2021, 8:16 pm EST

    I understand.
    Thank you for your help.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels