binding to a datagridview

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a datagridview and i am attempting to bind a bindingList to it.
if autoGenerate columns is true the grid corectly displays all columns in
the list.
if AutoGenerateColumns is false i still get all the rows however the data is
not displayed. the columns are generated and appear to be correct - the
ColumnName maps onto the property name of the collection. should i be doing
something else?
 
yes- i needed to set the DataGridView.DataPropertyName as well!
wouldnt it be nice if this defaulted to the Name!
 
Back
Top