|
-
Aug 11th, 2010, 01:34 PM
#1
Thread Starter
Hyperactive Member
Datagrid + Generic List + Hide Columns
Hi all,
I have the following situation:
A WM5/PPC application with a datagrid that have a generic list of object as datasource. The list of Object is actually a List(of Product) where Product class is a value object with some classic properties, prduct id, code, name etc...
I want to hide some of the fields being displayed and attempted to do so by hiding datagrid columns using DataGridTableStyle. I converted some code from C# and tried to use:
dim ts as new DataGridTableStyle
ts.GridColumnStyles.AddColumn(...)
But it would seem that AddColumn is not a member of GridColumnStyles and it only has the Add method which takes a DataGridColumnStyle as parameter. So i'm a bit here, is there any way to achieve this hiding of columns?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|