Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Text below visible area of Cell when editing
posted

I have following Problem when using a XamDataGrid bound to an ObservableCollection.

When i use a regular TextField to Display Data, the Text seems to be moved below the visible area while editing. The Text itself is correct and is being transfered to the Collection, however it is Kind of annoying not being able to see what you are typing:

However, when i use a MaskedTextField it Shows the Behaviour i want.:

Code of the DataGrid:

<custom:XamDataGrid Name="InvPosDisplay" Grid.Column="2" DataSource="{Binding LoadedPositions}" >
                <custom:XamDataGrid.FieldLayoutSettings>
                    <custom:FieldLayoutSettings AutoGenerateFields="False" AllowAddNew="True" AddNewRecordLocation="OnTop"/>
                </custom:XamDataGrid.FieldLayoutSettings>
                <custom:XamDataGrid.FieldSettings>
                    <custom:FieldSettings AllowRecordFiltering="True" LabelClickAction="SortByMultipleFields" DataValueChangedNotificationsActive="True" />
                </custom:XamDataGrid.FieldSettings>
                <custom:XamDataGrid.ViewSettings>
                    <custom:GridViewSettings />
                </custom:XamDataGrid.ViewSettings>

                <custom:XamDataGrid.FieldLayouts>
                    <custom:FieldLayout>
                        <custom:TextField Name="INV_NR" Label="INV_NR" AllowEdit="False" Width="80" ></custom:TextField>
                        <custom:TextField Name="INV_DAT" Label="INV_DAT" AllowEdit="False"></custom:TextField>
                        <custom:TextField Name="ART_NR" Label="ART_NR" Width="70"></custom:TextField>
                        <custom:MaskedTextField Name="ART_BEZ" Label="ART_BEZ" Width="170"></custom:MaskedTextField>
                        <custom:NumericField Name="ART_MENGE_FREI" Label="ART_MENGE_FREI" Width="100">
                            <custom:Field.Settings>
                                <custom:FieldSettings EditorType="{x:Type custom:XamNumericEditor}" >
                                    <custom:FieldSettings.EditorStyle>
                                        <Style  TargetType="{x:Type custom:XamNumericEditor}">
                                            <Setter Property="Mask" Value ="{}{double:9.5}"/>
                                        </Style>
                                    </custom:FieldSettings.EditorStyle>
                                </custom:FieldSettings>
                            </custom:Field.Settings>

Is there a Way i can have the TextField display my text the same way as the MaskedTextfield does?