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

  • Home
  • SEARCH
  • 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 6171229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:10:37+00:00 2026-05-23T23:10:37+00:00

<k:GridView Name=_masterGridView ItemsSource={Binding ProductLocationList} SelectedItem={Binding ProductLocationSelected}> <!– DataContext does not propagate here automatically in

  • 0
<k:GridView Name="_masterGridView" 
            ItemsSource="{Binding ProductLocationList}" 
            SelectedItem="{Binding ProductLocationSelected}">
<!-- DataContext does not propagate here automatically in user control... why? -->
    <k:GridView.ExportOptions>
         <k:GridViewExportOptions Title="Production Location Management">
             <k:SearchCriteria >
                 <k:SearchCriterion Title="End Date"
                                    Value="{Binding SearchEndDate}"
                                    ValueFormat="g" />
             </k:SearchCriteria>
         </k:GridViewExportOptions>
    </k:GridView.ExportOptions>
<!-- to here -->

I have to do this hack and it only propagates to GridViewExport option
The hack is in the GridView class…

public GridViewExportOptions ExportOptions
{
    get { return _exportOptions; }
    set
    {
        _exportOptions = value;

        if (value != null)
        {
            ExportOptions.SetBinding(FrameworkContentElement.DataContextProperty,
                new Binding("DataContext")
                {
                    Source = this,
                    Mode = BindingMode.TwoWay
                });
        }
    }
}
  • 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-23T23:10:38+00:00Added an answer on May 23, 2026 at 11:10 pm

    You would need to add your GridViewExportOptions as a logical child. Effectively, your GridViewExportOptions would have to derive from FrameworkElement. When your property is changed, you’d have to AddLogicalChild on your GridView (and RemoveLogicalChild to remove the old value, if any). Then you’d have to override LogicalChildren on your GridView and include your option.

    You would need to do this in your GridViewExportOptions class as well, with respect to it’s “children”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm binding my gridview's bound columns with datafield using the column name of my
I have a GridView which populates ID Name City 1 Bobby AAA 2 Laura
I currently have a Gridview that displays TypeID , Name , Description. I would
I am using gridview for add and update process in database. Process Flow: Name 
i need to display the name of enum in gridview by data table returns
Markup <asp:GridView ID=GridView1 runat=server AutoGenerateColumns=False> <Columns> <asp:BoundField DataField=insured_first_name HeaderText=First Name /> <asp:BoundField DataField=insured_first_name HeaderText=Middle
I want to assign value to the GridView Column Name TaxAmount. To get the
I have gridview with Employee Name, Emp Code, Designation. I am populating Employee Names
I want to save pictures, and show them in a gridview with the name,
I have a gridview that contains a column name History which has Plus (+)

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.