here you are passing in data to the constructor but doing nothing with it -
that's the first thing that jumps out at me as to why you're not getting
any data in the table
public BasicTableViewItemGroup (List<ClientAssessment> lst)
{
}
On Tue, Jul 3, 2012 at 2:42 AM, proindigo <[email protected]> wrote:
> Well I have modified the code a bit for the function CreateTableItems(). It
> makes more sense now, although I am getting two errors.
>
> Here is my modified code block for CreateTableItems()
>
> public void CreateTableItems ()
> {
> List<BasicTableViewItemGroup> tableItems = new
> List<BasicTableViewItemGroup> ();
> BasicTableViewItemGroup tGroup;
> tGroup = new BasicTableViewItemGroup
> {Name="Enumerated Projects",
> Footer="Loaded from Database", Items=objdbh.FetchAssessments ()};
> tableItems.Add (tGroup);
> this._tableViewSource = new BasicTableViewSource
> (tableItems);
>
> }
>
> The errors I am getting are,
>
> 1. Error CS0029: Cannot implicitly convert type
> `System.Collections.Generic.List<ASTONAPP.ClientAssessment>' to
> `System.Collections.Generic.List<ASTONAPP.BasicTableViewItemGroup>'
> (CS0029)
> (ASTONAPP) [AssessmentsHome.cs]
>
> 2. Error CS0029: Cannot implicitly convert type
> `ASTONAPP.BasicTableViewItemGroup' to `ASTONAPP.BasicTableViewItem'
> (CS0029)
> (ASTONAPP) [BasicTableViewSource.cs]
>
> For reference see my previous code lisiting sfor the various class files I
> have created.
> Thanks.
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/UITableView-Scenario-Help-Needed-tp4655680p4655733.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch