Thanks Michal
The value of the property m_tabstyActive was "MyObject". I was sure i'd
already tried this as a tablestyle mapping name but i tried it again and it
worked!
How did you know about this property? if its there why isnt it public?i
suppose there are other hidden properties that are not exposed. How can you
findout what they are, use reflection maybe?
Regards
Kevin
I have tried that but to no avail.
I have a variable called MyList which is the datasource of the grid andis
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 thisas
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?
"drozd" <
[email protected]> wrote in message
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