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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:00:22+00:00 2026-05-30T15:00:22+00:00

All samples that I encountered so far for using TableView were using UITableViewController. But

  • 0

All samples that I encountered so far for using TableView were using UITableViewController. But I want use it in UIViewController. I am placing a Label at the top of the view and a TableView below it.

I am able to display the data in rows as needed.

        public override void ViewDidLoad ()
    {
        base.ViewDidLoad ();

        // Perform any additional setup after loading the view, typically from a nib.
        selectedDate = Convert.ToDateTime (Application.selectedDateTime.ToShortDateString ());
        lblCurrentDateValue.Text = "Date currently set to: " + selectedDate.ToShortDateString ();

        // Create option list for date selection
        DateTime now = DateTime.Today;
        arrayOptionCells = new DateSelectionOptionCell[]
        {
            new DateSelectionOptionCell ("Yesterday", FormattedDateString (2, now.AddDays (-1)), null),
            new DateSelectionOptionCell ("Today", FormattedDateString (2, now), null),
            new DateSelectionOptionCell ("Tomorrow", FormattedDateString (2, now.AddDays (1)), null),
            new DateSelectionOptionCell ("Day After", FormattedDateString (2, now.AddDays (2)), null),
            new DateSelectionOptionCell ("n - Days after             n =>", FormattedDateString (2, now.AddDays (7)), TFDaysAfter()),
            new DateSelectionOptionCell ("Select Date Picker", FormattedDateString (2, now), null)
        };

        tblvDateSelection.Source = new DataSource(this);
        tblvDateSelection.Delegate = new DateSelectionTableDelegate();
        tblvDateSelection.ReloadData ();
    }

In the above code the tblvDateSelection is the TableView. But the DataSource.RowSelected(…) is not firing on touching a row / section. I compared the class DataSource code with those working examples but using UITableViewController and not UIViewController.

What could be the reason for RowSelected not being fired?

ThanQ…

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

    The problem seems to be that you’re setting both the UITableViewSource AND UITableViewDelegate, the UITableViewSource is actually a helper method that sets both the UITableViewDataSource AND UITableViewDelegate for you, if you do not set the UITableViewDelegate, then this should work for you.

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

Sidebar

Related Questions

I'm trying to use an event listener for the first time. All samples I've
Thats it really.. I am using VS2008 Express. All the samples say just to
http://www.mongodb.org/display/DOCS/Dot+Notation+(Reaching+into+Objects ) In the docs, all the samples use dot notation to find a
Does anybody know a good C sample that loads bitmaps and handles all the
I'm very confused by the MSDN samples. And all the samples I find generally
As I know alpha composition uses straight alpha basically. But all GLES blending sample
I'm considering using MongoDb for a backing store for a WPF app that I'm
I have a table (MySQL) that captures samples every n seconds. The table has
I have a series of functions that are all designed to do the same
Our current project does not use Hibernate (for various reasons) and we are using

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.