Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGridView only show certain columns...
Message
From
23/10/2007 14:03:30
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01262580
Message ID:
01262875
Views:
14
Ok Kevin, that was easy once I read the Dev Guide topic where is says “To specify that only the columns you have specified are displayed at run time, you must set the DataGridView's AutoGenerateColumns property to false. Unfortunately, this property is not visible in the property sheet! You have to add code to your form's constructor to set this property to false.”


With that now working, can you help me in understanding these two things about mm controls:

1. I’m curious why the field names from the BO table do not appear when assigned the DataPropertyName of the column designer. That means you've got to know the column name and type it in, rather that picking it from a dropdown.

2. Why does AutoGenerateColumns property appears in intellisense, but not the property window. Are there other places in the mm controls that this happens?




>Matt,
>
>>Now, I want to move on to understanding how to display only certian columns of the business object's entity columns. I do not see a way to choose columns on the dataGridView in the properties window.
>>
>>For instace, my test form using the GetJobsByCustomer business object method is pulling all columns (about 22 columns) that are in the underlying stored proc in SQL Server. Suppose I only want to display a selected few of those columns in the mmdataGridView.
>
>Check out the MM .NET Dev Guide topic "Working with the mmDataGridView. There is a section "Setting up Columns in mmDataGridView" that provides step by step instructions on how to to this.
>
>Best Regards,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform