Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with combo box in Windows form
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01175922
Message ID:
01176741
Views:
7
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform