DataGridTemplateColumn binding

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
sebas
Posts: 21
Joined: Fri Oct 27, 2017 7:03 am

DataGridTemplateColumn binding

Postby sebas » Tue Jan 30, 2018 12:43 am

I have problem with it.

When cell leaves editing mode TextBlock dosnt get new value. But binded structure get new value.
What is wrong?

Code: Select all

                    <DataGrid x:Name="UserLoginGrid" IsReadOnly="False"
                                      ItemsSource="{Binding userLogins, Mode=TwoWay}">
                        <DataGrid.Columns>
                            <DataGridTemplateColumn Header=""  >
                                <DataGridTemplateColumn.HeaderTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="Login"/>
                                    </DataTemplate>
                                </DataGridTemplateColumn.HeaderTemplate>
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding login}"/>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                                <DataGridTemplateColumn.CellEditingTemplate>
                                    <DataTemplate>
                                        <TextBox Text="{Binding login, Mode=TwoWay}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellEditingTemplate>
                            </DataGridTemplateColumn>

JS-Support @Userware
Site Admin
Posts: 921
Joined: Tue Apr 08, 2014 3:42 pm

Re: DataGridTemplateColumn binding

Postby JS-Support @Userware » Wed Jan 31, 2018 1:26 am

Hi,

Thanks for your message. We are going to look into is asap.

Regards,
JS-Support


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 5 guests

 

 

cron