Copyright Accelerated Ideas 2007 Legacy Blog Posts | Blog Home | .NET Components

AIFileGridView - How can I add files to the list at runtime?


3/13/2007

If you want to add files to the File Grid at runtime you will need to first set the properties for the FileGridView to:

FileMode = Manual
FileFilter = None


Then at runtime you can add files to the FileGridView using any of the AddFileItem overloads:

AddFileItem( FileInfo )

You can add a new file by passing a FileInfo object

OR

AddFileItem( FilePath)

You can add a new file by passing the file name (which is the full path to the file e.g. C:\\TEMP\\myfile.xml)


< Blog Home