The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Binding to code generated columns in a datagridview

Last post 07-08-2008, 2:02 PM by Morak. 2 replies.
Sort Posts: Previous Next
  •  07-08-2008, 10:27 AM 10166

    Binding to code generated columns in a datagridview

    Hi,

     

    I am building up a data grid one column at a time and setting the properties.  When I set the data source for the grid it appends the collections column to the right of the columns I created.  How can I populate the columns I created with the data from the collections?

     

    (Es 2008,VS2005,Win form datagridview)

     

    Jeff

  •  07-08-2008, 11:55 AM 10169 in reply to 10166

    Re: Binding to code generated columns in a datagridview

    Are you setting the DGV AutoGenerateColumns to false in your code?
    David Neal Parsons
    www.entityspaces.net
  •  07-08-2008, 2:02 PM 10173 in reply to 10169

    Re: Binding to code generated columns in a datagridview

    No, but I did find that the datapropertyname was not set so the grid duplicated the columns.

    Jeff

View as RSS news feed in XML