Home Forums WPF controls Xceed DataGrid for WPF Custom Editor cell activation

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

    Hi,
    I have a Editor with following defination

    public class MoneyEditor : System.Windows.Controls.TextBox
    {
    protected override void OnTextChanged(TextChangedEventArgs e)
    {}
    }

    I have the following data template
    <xcdg:CellEditor x:Key=”MoneyEditor”>
    <xcdg:CellEditor.EditTemplate>
    <DataTemplate>
    <local:MoneyEditor Text=”{xcdg:CellEditorBinding}”/>
    </DataTemplate>
    </xcdg:CellEditor.EditTemplate>
    <xcdg:CellEditor.ActivationGestures>
    <xcdg:KeyActivationGesture Key=”Down”/>
    </xcdg:CellEditor.ActivationGestures>
    </xcdg:CellEditor>

    I assign the cell editor in the Code behind C# code.

    The problem is, to edit the cell i have to click twice in the cell

    -thank you

    Imported from legacy forums. Posted by sethu (had 521 views)

    Xceed Support
    Member
    Post count: 5658

    Change the grid’s EditTriggers property.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 210 views)

    User (Old forums)
    Member
    Post count: 23064

    Works very well. thank you

    Imported from legacy forums. Posted by sethu (had 3236 views)

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