Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Adding a dorpdownlist to the gridview
Versions des environnements
HI,
I have two questions on this topic.
1-) In the MM.NET developer's Guide, under Creating Web Application, Working with mmGridView, Adding a DropDownList to a GridView, Step 2: Specifying the EditItemTemplate for the Template Column, The instruction 6 is requesting to select the SelectedIndex in the bindable properties of the DataBindings dialog, while the picture of the DataBindings dialog is showing the SelectedValue. Which of the two is the correct one, is it SelectedIndex or SelectedValue?
2-)Is it possible to bind that Dropdownlist in the gridview to another businessobject?
For example: I have a gridview with DTable businessobject as its BindingSource and the gridview has column named IdRegion. Instead of typping the IdRegion I would like to fill the dropdownlist with the RegionEntity and select the IdRegion from the dropdownlist. Or the dropdownlist can only be bound to the gridview's Bindingsource?
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement