DataGridTableStyle Mapping name when using BindingSource

  • Thread starter Thread starter Eric Falsken
  • Start date Start date
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)
 
Back
Top