Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmPicker - data binding to a data view
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmPicker - data binding to a data view
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00989474
Message ID:
00989474
Vues:
45
I have an mmPicker whose BindingSourceMember is BizObjectName.DataViewName.ColumnName. Trying to set what's shows in the mmPicker's text box to a certain row in the data view.

The mmPicker doesn't seem to expose it's protected mmTextBox txtEntry, so I can't do something like
this.mmPicker1.DataBindings[0].BindingManagerBase.Position = someInt;
as the picker doesn't have any Bindings in it's ControlBindingCollection.

And unlike a business object, you can't just set the .DataRow property of a DataView. I'm tossing around the idea of subclassing or tweaking the mmPicker source code, or, .MoveNext() through the DataView's rows until I find the row I want. Second option seems like a pain.

Any thoughts?

TIA,
Mike
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform