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 9162159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:08:39+00:00 2026-06-17T14:08:39+00:00

I have a DataGrid control that has a TextColumn <DataGrid ItemsSource={Binding Path=Dvm.Data} Name=GrdName AutoGenerateColumns=False

  • 0

I have a DataGrid control that has a TextColumn

    <DataGrid ItemsSource="{Binding Path=Dvm.Data}"
              Name="GrdName"
              AutoGenerateColumns="False"
              Margin="5"
              SelectionMode="Single">
        <DataGrid.Columns>
            <DataGridTextColumn Header="Column 1"
                                Binding="{Binding Path=Col1, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"
                                Width="*"/>
        </DataGrid.Columns>
    </DataGrid>

I have a custom control that requires me to test what the UpdateSourceTrigger setting is, but I am having trouble accessing that from code. I would like to do something like this:

BindingOperations.GetBindingExpression(GrdName.Columns[0], DataGridTextColumn.BindingProperty);

But, BindingProperty is not actually a dependency property, so I can’t do that. Does anyone know how I would go about getting the binding expression for the Binding property for that column so I can get the UpdateSourceTrigger setting?

Thanks,
Matt

  • 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-06-17T14:08:40+00:00Added an answer on June 17, 2026 at 2:08 pm

    The Binding property is not a DependancyProperty so you will have to access using normal public properties.
    So you will have to do a bit of casting as the Binding property in DataGridTextColumn is type BindingBase you will have to cast as Binding to access UpdateSourceTrigger.
    And since DataGridTextColumn is derived from DataGridBoundColumn you can cast from that to make it a bit more generic

    Something like this should work:

       var columnUpdateSourceTrigger = ((GrdName.Columns[0] as DataGridBoundColumn).Binding as Binding).UpdateSourceTrigger;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight application that has a DataGrid and a DataPager. The data
I have a WPF DataGrid control that is binding to a collection of objects.
I have a read-only datagrid bound to a domain data source. The data that
My WPF application has a DataGrid control in it. I have a default custom
I have a SQL CE database, which is beyond my control, that has fields
I have a datagrid that is displaying data that is being returned from a
I have a datagrid column that has Hyperlinkbuttons. You have to click the button
We have a custom DataGrid control that dynamically generates columns determined by an XML
I have a p:dataGrid of primefaces that has a pagination on top of the
I have a user control that often has 2000 or so component controls (TextBoxes,

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.