Re: Datagrid tablestyle mapping name

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: Datagrid tablestyle mapping name
    ... I have a variable called MyList which is the datasource of the grid and is ... I have also tried this variable name as the mapping. ... The datasource of my datagrid is a List(of MyObject). ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: Gridview never shows data
    ... Phillip Johnson ... <SelectParameters> ... When I click select on a row in the first grid, ... I initally just used a select statement in the datasource with an object ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Gridview never shows data
    ... <SelectParameters> ... When I click select on a row in the first grid, ... not just filtered for the one selected in the first grid. ... I initally just used a select statement in the datasource with an object ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Gridview never shows data
    ... <SelectParameters> ... When I click select on a row in the first grid, ... not just filtered for the one selected in the first grid. ... I initally just used a select statement in the datasource with an object ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Gridview never shows data
    ... <SelectParameters> ... When I click select on a row in the first grid, ... not just filtered for the one selected in the first grid. ... I initally just used a select statement in the datasource with an object ...
    (microsoft.public.dotnet.framework.aspnet)