Re: Datagrid tablestyle mapping name
- From: drozd <drozdowicz@xxxxxxxxx>
- Date: Wed, 29 Oct 2008 01:22:36 -0700 (PDT)
On Oct 27, 4:48 pm, "Kev Westwood" <kev...@xxxxxxxxxxxxx> wrote:
Hi Michal
I have tried that but to no avail.
I have a variable called MyList which is the datasource of the grid and is
declared like this :
Dim MyList as New List(of MyObject)
I have also tried this variable name as the mapping.
If i do a GetType on MyList it returns "List`1". I have also tried this as
the mapping name.
I have also tried using a bindingsource and have same problem if i use the
name or type of the binding source
So heres the list of mapping names i have tried so far:
MyObject
MyObject[]
MyList
List`1
Bindingsource
MyBindingSource
Any other ideas? Are tablestyles the only way to make a column invisible in
a datagrid in the compact framework?
Thanks
Kevin
"drozd" <drozdow...@xxxxxxxxx> wrote in message
news:2e50031b-dbdd-4f35-bb19-0ad03762aeae@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Oct 24, 12:44 pm, "Kev Westwood" <kev...@xxxxxxxxxxxxx> wrote:
Hi
I'm using VS 2005 with CF2.
The datasource of my datagrid is a List(of MyObject). All the properties
of
MyObject are visible as columns in the grid but i do not want all them to
be
visisble so I want to create a table style to do this. However, what
should
I use for the MappingName of the table style?
Thanks
Kevin
Try MyObject.
Kind regards,
Micha³
Hi Kevin
What you can try is debugging the bit after you assign the DataSource
property of the grid - check the dataGrid.m_tabstyActive field in the
Quick Watch window and look at the MappingName property. If the
correct name doesn't match the name you specify, a new table style is
created with the correct name and is accessible via m_tabstyActive
field.
That's how I found out the name to use in when I had a similar
problem.
Hope that helps,
Michal
.
- Follow-Ups:
- Re: Datagrid tablestyle mapping name
- From: Kev Westwood
- Re: Datagrid tablestyle mapping name
- References:
- Datagrid tablestyle mapping name
- From: Kev Westwood
- Re: Datagrid tablestyle mapping name
- From: drozd
- Re: Datagrid tablestyle mapping name
- From: Kev Westwood
- Datagrid tablestyle mapping name
- Prev by Date: Re: NUmericUpDown controls in .NET Compact Framework 3.5
- Next by Date: Re: Datagrid tablestyle mapping name
- Previous by thread: Re: Datagrid tablestyle mapping name
- Next by thread: Re: Datagrid tablestyle mapping name
- Index(es):
Relevant Pages
|