Skip to main content
A newer version of this page is available. .
Tab

ASPxFileManager.SelectedFile Property

Gets or sets the selected file within the ASPxFileManager control’s file container.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public FileManagerFile SelectedFile { get; set; }

Property Value

Type Description
FileManagerFile

A FileManagerFile object representing the selected file.

Remarks

Use the SelectedFile property to get or set the currently selected file within the ASPxFileManager when the FileManagerSettings.EnableMultiSelect property is set to false. You can customize the appearance of the selected file, using the file’s FileManagerFileStyle.SelectionActiveStyle and FileManagerFileStyle.SelectionInactiveStyle properties, or common for files and folders, the FileManagerItemStyle.SelectionActiveStyle and FileManagerItemStyle.SelectionInactiveStyle properties.

If none of the files is selected, the SelectedFile property returns null (Nothing in Visual Basic).

When the FileManagerSettings.EnableMultiSelect property is set to true, you can use the ASPxFileManager.SelectedFiles property to get a list of selected files.

See Also