Linda,
>Okay, that took care of that problem. Now I can't get the grid to load the invoice data. I am using mmDataGrid. The binding source is set to Invoice. There is only one invoice loaded right now. Could that cause a problem firing the code to load the dataset?
>
>Here's the code for selecting an invoice:
>
>
> private void ddlInvoiceNo_SelectedIndexChanged(object sender, EventArgs e)
> {
> if (this.ddlInvoiceNo.SelectedText != "")
> oInvoice.GetInvoiceByInvoiceNo(this.ddlInvoiceNo.SelectedText);
> this.grdInvoice.Refresh();
> }
>
If you set a breakpoint is this code firing in the SelectedIndexChanged method? Is the SelectedText what you expect? If it is, set a breakpoint in the MM .NET Framework class mmDataGridView.OnBindData() on this line of code:
mmBindingStrategyDataGrid.BindData(this, bindingSource, e);
You should then be able to trace through to see what's happening.
P.S. If you really meant you are using mmDataGrid, you should be using mmDataGridView instead...mmDataGrid is an old-style .NET 1.X grid.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com