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? What's the magic
word?


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

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

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