Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Răspuns ArrayList into a DataGird?

  • 16 aprilie 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.

Toate mesajele

  • 16 aprilie 2005 04:15
     
     Răspuns
    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