Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmGridView Dispaly my columns and entire table?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01160271
Message ID:
01160428
Views:
7
>>I am doing a simple maintenance form. I ran the form and saw the default table in the grid. I next created my columns and they are visible. Unfortunalty I still see the default listing of all the columns. So instead of presenting 4 I see 12.
>>
>>Any idea on how to stop those default columns after I create the custom columns?
>
>If you're doing a maintenance form, I'm guessing you mean the mmDataGridView? If so, you need to set the grid's AutoGenerateColumns property needs to be set to false. Oddly enough, you can't set this property through the Properties Window...you must do it programmatically. For example:
>
>
public MyForm()
>
>   InitializeComponent();
>   this.grdMappings.AutoGenerateColumns = false;
>
>}
Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform