I changed the PopulateOnFormLoad property to Manual and added your code and still no joy. If I could just step through the framework code I know I would be able to figure this out
If you are sure the BO has a record in it, you probably are not handling the listpopulating event of the listview - or not requerying it after filling the BO (this was a hard one for me to wrap my brain around)
I set the ListView's PopulateOnLoad property to FormLoad. The documentation says that this automagically populates the list when the form loads. I have another ListView used in a different project set up exacrly the same way and it works fine. Just for grin and giggles, I tried substituting a ListBox - no joy - same behavior.
One of my problems is that ever since I upgraded to version 1.0.7.1, I can no longer step throught he framework source code, so I am having even bigger problems trying to figure out what is wrong. If I could get that problem resolved, I could probabaly figure this one out too
This should be dead simple - I have a BO called boAllPeople with a data access method called GetAllPeople():
{
loCommand.CommandType =
loCommand.CommandText =
}
Here is the code in prcListAllPeople:
ALTER
AS
BEGIN
END
IF
RETURN
There are no records in my error_log table.
This is how my listview is configured
Columns collection has 3 columns: 1 for first name, last name and primary phone.
PopulationDataSource = boAllPeople.GetAllPeople()
Display fields are
{0} - last_nme
{1} - first_nme
{2} - contact_dtl
Tag is people_id
Columns are the same as what is in the columns collection and population type is formatted string.
PopulateOnFormLoad = FormLoad
I have verified that the view does have a record in it. However, when my form comes up, the list view contains the column headings in the first row where the single record in the view should be.
Can anyone tell me what I am doing wrong?
Thanks!