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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:58:16+00:00 2026-05-11T07:58:16+00:00

I have this following data source binding: MembershipProvider provider = new MembershipProvider(); UserUpdateLogs userUpdateLogs

  • 0

I have this following data source binding:

MembershipProvider provider = new MembershipProvider(); UserUpdateLogs userUpdateLogs = provider.GetUserUpdateLogs(username);  dgUserUpdateLog.DataSource = userUpdateLogs.Logs; dgUserUpdateLog.DataBind(); 

Logs is a collection of UserUpdateLogEntry. This class owns the UserData Property, and UserData contains other properties. My aspx:

<Columns> <asp:BoundColumn DataField='ChangeDate' Visible='true' HeaderText='Date'/> <asp:BoundColumn DataField='UserData.Sex' HeaderText='Sex' /> <asp:BoundColumn DataField='UserData.Phone' HeaderText='Phone' /> </Columns> 

The first row (ChangeDate) seems to work well. But when rendering the second BoundColumn, the following error is shown:

A field or property with the name ‘UserData.Sex’ was not found on the selected data source.

Why does it happen? Can’t Aspx recognize a concatenation of properties like PropertyA.PropertyB?

I’ve checked the object and all properties have valid data.

  • 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. 2026-05-11T07:58:17+00:00Added an answer on May 11, 2026 at 7:58 am

    You can not bind to properties of sub-objects in that way.

    As an alternative, you can use a template column and use Eval to display the properties of the sub-object, e.g. something like this:

    <asp:TemplateColumn HeaderText='Sex' Visible='true'>   <ItemTemplate>     <asp:Literal runat='server' Text='<%# Eval('UserData.Sex') %>' />    </ItemTemplate> </asp:TemplateColumn> <asp:TemplateColumn HeaderText='Phone' Visible='true'>   <ItemTemplate>     <asp:Literal runat='server' Text='<%# Eval('UserData.Phone') %>' />    </ItemTemplate> </asp:TemplateColumn> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this following setup, a textarea named with some data in it that
I have the following data: abc def; ghi. This regex will match: ([a-z0-9A-ZÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöùúûüýÿ ]*)\W
I'm following this how-to to implement Core Data storage in my app: I have
I have the following form <form name=myForm id=myForm method=post enctype=multipart/form-data action=script.php> and this jQuery
I have a window in my application with following resources: <Window.Resources> <ResourceDictionary> <Data:IssueRecords x:Key=DataSource/>
I'm new to WPF data binding. I have a ListBox on a form that
I have a DataGrid and a string[][] dataSource array as a source data for
I currently have the following row in my table: course_data: user_id days <-- This
I have this following IEnumerable LINQ query: var query = from p in Enumerable.Range(2,
I have this following code, here CssClass is of the String type. <asp:Panel ID=Panel1

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.