Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGridView only show certain columns...
Message
From
22/10/2007 17:11:43
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
22/10/2007 16:24:29
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01262580
Message ID:
01262660
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform