Issue with Cell Text Updates in C1.WPF.Grid.FlexGrid

Posted by: ilia on 16 January 2025, 7:44 am EST

  • Posted 16 January 2025, 7:44 am EST

    I am using the C1.WPF.Grid.FlexGrid in NET8, VB.net, and I have encountered an issue related to text updates in cells.

    I am using Class Inherits from GridCellFactory, and using Overrides Function CreateCellEditor for create textbox.

    When I modify the text in a cell and press Enter, the updated text is successfully saved. However, if I change the text in a cell and then use the mouse to navigate to another row without pressing Enter, the updated text disappears, and the cell reverts to its previous value.

    Could you please advise on how to ensure that the updated text is retained when navigating with the mouse after modifying a cell?

    Thank you for your assistance.

    This is my code in CreateCellEditor :

    '---------- code ---------------

    Dim tb As New TextBox()

    tb.BorderThickness = New Thickness(1)

    tb.VerticalScrollBarVisibility = ScrollBarVisibility.Auto

    tb.TextWrapping = TextWrapping.Wrap

    tb.AutoWordSelection = False

    tb.AcceptsReturn = False

    tb.AcceptsTab = False

    tb.Background = Brushes.Transparent

    Dim binding As New Binding(Grid.Columns(range.Column).ColumnName)

    binding.Mode = BindingMode.Default

    binding.Source = Grid.Rows(range.Row).DataItem

    binding.Mode = BindingMode.TwoWay

    tb.SetBinding(TextBox.TextProperty, binding)

    Return tb

    '----------------------------------------

  • Posted 16 January 2025, 7:54 am EST

    I would like to add a clarification to my previous message:

    If I edit the text in a cell and press Enter, the updated text is saved correctly.

    However, if I edit the text in a cell and then click on another row (without pressing Enter), the updated text disappears entirely from the cell instead of being saved.

    This behavior causes the cell to appear empty after editing.

  • Posted 17 January 2025, 9:02 am EST

    Hi Ilia,

    Thanks for the details.

    We could replicate this behavior on our end. We are currently discussing it with our developers. [Internal Tracking ID: C1XAML-37652]

    We will update you soon on this.

    Thanks & Regards,

    Aastha

  • Posted 26 January 2025, 3:14 am EST

    Hi Astha,

    Any updates? it’s been more than a week…

    Guy.

  • Posted 27 January 2025, 2:49 am EST

    Hi,

    We are sorry for the inconvenience.

    We have asked the developers for the updates. We will notify you once they share any information.

    Thanks & Regards,

    Aastha

Need extra support?

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

Learn More

Forum Channels