How do we load data to datagrid manually on CF2?

Traitée How do we load data to datagrid manually on CF2?

  • mardi 16 août 2005 14:17
     
     
    I try to add columns and rows to a datagrid manually( without any datasource ).But I can't do this. I try it with the tablestyles property but it didn't work. Is there any way to do this?

Toutes les réponses

  • mardi 16 août 2005 16:46
    Modérateur
     
     Traitée

    You can't. DataGrid does not have any data storage inside and can only be used with data binding. Bind it to same data source (e.g. ArrayList) and populate it manually instead.