Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataGridView only show certain columns...
Message
De
22/10/2007 17:11:43
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
22/10/2007 16:24:29
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01262580
Message ID:
01262660
Vues:
16
Hi Matt,

>>There is a "Columns" collection on the DataGridView where you can define column header names, what they are bound to, etc.
>
>I see the column collection, but it is not aware of the Business Object that I have set in the BindingSource property of the grid. In other words, I would expect it to show me all the columns in the BO, so I can choose which ones to show.
>
>Even so, if I manually add a column, it ignores it, and just adds all the columns from the BO anyway.

When you are in the "Fields" collection form and add columns to display (typically bound column) notice at the bottom of this form there is a checkbox that says "Auto-Generate Fields"? You need to uncheck this. I have forgot this many times and get all fields showing.

Tim
>
>Remeber, I am talking about the mmDataGridView grid object running against a mm Business Object class that is set in the BindingSource property.
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform