ArrayList into a DataGird?

Traitée ArrayList into a DataGird?

  • samedi 16 avril 2005 03:36
     
     
    Hi,

    I want to know how I can get an ArrayList into a DataGrid component.

    I have SQL results (SELECTS) in methods returning an ArrayList already in my app.

Toutes les réponses

  • samedi 16 avril 2005 04:15
     
     Traitée
    Hi Dean,

    You can set the Source property of the DataGrid to an ArrayList and it will bind just as it would with a DataView or some other type of source.  It can autogenerate the columns based on the properties of the objects in the array list, or you can define your own columns and custom bindings.

    Robin