Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7507009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:24:03+00:00 2026-05-29T22:24:03+00:00

I have implemented a DataGrid that way: <DataGrid x:Name=MyDataGridFilter ItemsSource={Binding} IsSynchronizedWithCurrentItem=True AutoGenerateColumns=False> <DataGrid.Columns> <DataGridTemplateColumn

  • 0

I have implemented a DataGrid that way:

    <DataGrid 
    x:Name="MyDataGridFilter"
    ItemsSource="{Binding}"
    IsSynchronizedWithCurrentItem="True"
    AutoGenerateColumns="False">
    <DataGrid.Columns>
        <DataGridTemplateColumn 
                x:Name="FilterTextCol01">
            <DataGridTemplateColumn.CellTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <TextBox 
                            Grid.Column="0"
                            IsHitTestVisible="True"
                            Text="{Binding Path=FilterTextCol01}" />
                        <CheckBox 
                            Grid.Column="1"
                            x:Name="FilterAktivTextCol01"
                            IsHitTestVisible="True"
                            IsChecked="{Binding Path=FilterAktivTextCol01}"/>
                    </Grid>
                </DataTemplate>
            </DataGridTemplateColumn.CellTemplate>
        </DataGridTemplateColumn>

The binding in the Code goes this way:

FilterItemsList = new ObservableCollection<DataGridFilterEntity>();
MyDataGridFilter.DataContext = FilterItemsList;

(it is shorted)
FilterItemsList is implemented as an INotifyPropertyChanged clas:

public class DataGridFilterEntity : INotifyPropertyChanged

With the member FilterTextCol01 (of course):

public string FilterTextCol01
    {
        get { return _FilterTextCol01; }
        set
        {
            _FilterTextCol01 = value;
            Changed("FilterTextCol01");
        }
    }

Everything works fine. When I change the FilterItemsList the DataGrid refelcts these changes.
But when I make some changes in the UI (in the DataGrid) it isn’t reflected by the ObservableCollection (FilterItemsList).

I searched and tried some hours but did not find any solution.
Does anyone know how to solve this?
Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:24:03+00:00Added an answer on May 29, 2026 at 10:24 pm

    You need TwoWay binding.

    For example,

     <TextBox 
                            Grid.Column="0"
                            IsHitTestVisible="True"
                            Text="{Binding Path=FilterTextCol01, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
       <CheckBox 
                            Grid.Column="1"
                            x:Name="FilterAktivTextCol01"
                            IsHitTestVisible="True"
                            IsChecked="{Binding Path=FilterAktivTextCol01, Mode=TwoWay}"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wpf datagrid that has it's columns generated dynamically in code and
I have a DataGrid that two of its columns are ComboBoxes (one contains few
I have a situation where ItemsSource property of a DataGrid is an array of
I have a datagrid that is bound to a observableCollection of Employees The user
I have a DataGrid . Right now it's binding to an ObservableCollection<Foo> in my
up till now I have a linq query that fills a datagrid perfectly with
I have a DataGrid (called TheGrid) that I would like to implement copy and
I have a ASP.NET GridView that uses template columns and user controls to allow
I have list of maybe 50,000 entries that are populated in datagrid in wpf.
I have a button that loads more data into a datagrid when clicked. To

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.