Frank,
> At the beginning of this particular form's code, at the top of the class, I've included the following lines:
>
> Public oReportCat as New Bus.ReportCatalog
> Public dtReportCat as DataTable = oReportCat.GetAllData()
> Public dvReportCat as DataView = me.dtReportCat.DefaultView
>
>...so, yes, dtReportCat is a DataTable
>
> The workaround in the form load method didn't intentionally avoid using the mmListBox properties. We're pretty new to MM.Net here and I apparently grabbed the first thing out of IntelliSense that made some sense. It also worked, by the way.
>
> Having received your last note, I went back and tried the following code in the form's load method:
> me.dtReportCat = oReportCat.GetAllData()
> me.lstReportCat.BindingSource = me.dvReportCat
> me.lstReportCat.BindingSourceDisplayMember = "strReportName"
> me.lstReportCat.BindingSourceValueMember = "strReportFile"
> me.lstReportCat.Enabled = True
> me.optAllReports.Select()
>
Check out the MM .NET Dev Guide topic "Data Binding Windows Forms List Controls". There you will find instructions for binding to a DataView. You want to do something like this (where you replace "TableName" and "ViewName" with the real table and view names):
me.lstReportCat.BindingSource = "ReportCatalog"
me.lstReportCat.BindingSourceDisplayMember = "TableName.ViewName.strReportName"
me.lstReportCat.BindingSourceValueMember = "TableName.ViewName.strReportFile"
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com