Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid question
Message
 
À
11/03/2008 10:44:55
Frank Dolinar
Mi House of Representatives
Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
01298134
Message ID:
01301212
Vues:
11
Frank,

> I read the information you suggested and attempted to follow it.
> However, in this case I'm working with a Windows form and need to include the dropdown list in the cells of a gridview on a Windows form, not a Web form.
> While the documentation you indicated is clear, it's for a Web form and doesn't match what I see when attempting to work with the grid on a Windows form. Is it possible to do this on a Windows form gridview? If so, what are my next steps? If not, what are my alternatives?

When you add a new column to a Windows Forms DataGridView, in the Add Column dialog's Type dropdown you can specify that you want to add a DataGridViewComboBoxColumn. Since this is a non-MM .NET control, you can use standard .NET data binding as described here:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewcomboboxcolumn.aspx

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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform