none
prevent autogenerate columns RRS feed

  • Question

  • Hi there,

    I use a datagridview to show and edit some simple data.

    In the designer, I set the datagridviews' datasource to bsBindingSource and in my code, I set the datasource of the bindingsource to a list of items.

    In the designer, I allso set the autogenerateColumns property to false. (property autogenerateColumns is not available in designer? so I do this in the design code.

    In the designer, I creata 4 columns (a dropdowncolumn, and 3 textboxcoulmns)

    The problem is that, after I build the sollution, for every property of the datagrids bindingsource.datasource, a new column is created (eventhough autogenerate columns is set to false

    Do you have any idea what goes wrong?

     

    Thanks a lot,

    Nico 

     

    Monday, March 29, 2010 12:53 PM

Answers