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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:02:25+00:00 2026-05-13T15:02:25+00:00

I want to implement a very simple list control. It has 2 properties: RowTemplate

  • 0

I want to implement a very simple list control. It has 2 properties:

  1. RowTemplate (ITemplate)
  2. DataSource (IList)

The control implementation must render each row using the template specified in RowTemplate passing the corresponding object in the DataSource list, so that, if I have a property called Name in the passed object, it would be accessible with a Eval("Name").

I want an example of how to render the control using RowTemplate and how to pass the correspondent DataSource object to the template.


I’m reading the MSDN documentation on the subject: Data Binding Expression Overview and Binding to Databases but I just can’t find how to implement a control that passes an object to the template.

  • 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-13T15:02:25+00:00Added an answer on May 13, 2026 at 3:02 pm

    It sounds like you’re trying to develop a templated data-bound control.

    Essentially you just need to iterate your datasource object during the rendering of the main control. For each item in your datasource, create a new instance of your template container object and add it to the container control. Depending on what you’re extending, the actual render method might vary, but if you’re extending something like BaseDataList, then you would do it in “CreateControlHeirarchy()“.

    There’s a few walkthroughs around that you can check out. Here’s a pretty straightforward one.

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

Sidebar

Related Questions

Hi I want to implement a very simple game on iphone. I have a
Microsoft has announce that WindowsLiveID become a OpenID provider . I want implement it
I want to implement a simple script to do some boring housekeeping on my
I want to implement a list of ViewPagers. Every item of a ListView is
I want to implement a simple SVM classifier, in the case of high-dimensional binary
I am trying to implement a very simple service example. The user inputs the
I decided to implement a very simple program recursively, to see how well Java
I want to create a very simple HTML/AJAX based GUI for a Python program.
I'm designing a very simple web page (HTML only), the only feature I want
I want to do a very simple alpha animation but I cannot find a

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.