binding to a datagridview

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?
 
G

Guest

yes- i needed to set the DataGridView.DataPropertyName as well!
wouldnt it be nice if this defaulted to the Name!
 

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