DataGridTableStyle Mapping name when using BindingSource

E

Eric Falsken

I can't figure out what the MappingName property should be set to when the
DataGrid is bound to a BindingSource. The bindingSource can be bound to a
Foo[] or a List<Foo>. But neither of those settings cause the grid to
display the correct TableStyle. Is this feature broken in the compact
framework? What's the magic word?


DataGrid.DataSource = BindingSource
BindingSource.DataSource = List<Foo>

DataGridTableStyle.MappingName = ??? // WHAT GOES HERE?
DataGrid.TableStyles.Add(DataGridTableStyle)
 
Y

Yuan Ren[MSFT]

Hi Eric,

Thanks for your post!

For the current issue, the MappingName property is set as the name used to
map this table to a specific data source. So, as far as I know, you can set
the property to the name of the List<T> at the current stage. The following
MSDN document demonstrates the details about the property:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridtables
tyle.mappingname(VS.80).aspx

Hope this will be helpful. If you have any concerns or issues, please let
me know. It's my pleasure to be assistance.

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights
 
S

stephen.flannigan

Hi

Did you get it to work ?

If so what is the solution.

I have the same problem .. I've tried everything

Thanks

Stephen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top