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

AIFileGridView - Automatically adding files


3/13/2007

If you want the files shown in the grid to be automatically populated you need to set the following properties for the FileGridView:

FileMode = Automatic
DirectoryPath = “Choose a directory path”


The DriectoryPath string can be either set at design time or runtime. If you want to change the DirectoryPath at runtime then you must call:

RefreshView()


This will cause the grid rows to be cleared and repopulated again using the new DirectoryPath that you specified.


< Blog Home