File Column Properties

Top  Previous  Next

Basic Properties

ColumnType

Specifies the type of information the column should display. If Windows Search or Indexing Service is available on the server you can use the WindowsSearch or IndexingService value and then specify one of the extended set of properties available in WindowsSearchColumnType and IndexingServiceColumnType,

Icon

Icon respresenting the file type in the column

Name

File name

Size

File size

DateCreated

Date the file was created

Type

File type (extension)

DateLastModified

Date the file was last modified

DateLastAccessed

Date the file was last accessed

Thumbnail

Thumbnail (for image files only)

Folder

Parent folder

WindowsSearch

Specifies that the column value is a Windows Search property specified by the WindowsSearchColumnType property

IndexingService

Specifies that the column value is an Indexing Server property specified by the IndexingServiceColumnType property

	<DNL:DbNetFile 
		runat="server"
		id="DbNetFile1"  
		BrowseMode="WindowsSearch"
		>
		<FileColumns>
			<DNL:FileColumn ColumnType=Icon />
			<DNL:FileColumn ColumnType=Name Label="Name" Selectable="true"/>
			<DNL:FileColumn ColumnType=DateCreated Label="Created"/> 
			<DNL:FileColumn ColumnType=Thumbnail Label="Thumb"/> 
			<DNL:FileColumn ColumnType=WindowsSearch Label="Image Width" WindowsSearchColumnType=Image_HorizontalSize /> 
			<DNL:FileColumn ColumnType=WindowsSearch Label="Image Height" WindowsSearchColumnType=Image_VerticalSize /> 
		</FileColumns>
	<DNL:DbNetFile>

Run Sample

Label

Specifies the text label for the column that will be displayed as the column heading and also the search dialog label.

Additional Properties

BrowseDisplay

Specifies whether the column should be displayed when browsing a folder.

Format

Specifies a format mask for a date-time or numeric value.  Values are the standard .NET date-time and numeric formatting strings.

	<DNL:DbNetFile 
		id="DbNetFile1" 
		RootFolder="~/samples/dbnetfile/files"
		Search="true"
		runat="server">
		<FileColumns>
			<DNL:FileColumn ColumnType="Icon" Label=""/>
			<DNL:FileColumn ColumnType="Name" Label="Name" Selectable="true"/>
			<DNL:FileColumn ColumnType="Folder" Label="Folder"/>
			<DNL:FileColumn ColumnType="DateCreated" Label="Created" Format="MMM yyyy"/>
			<DNL:FileColumn ColumnType="Size" Label="Size"/>
			<DNL:FileColumn ColumnType="DateLastModified" Label="Last Modified" Format="g"/>
			<DNL:FileColumn ColumnType="DateLastAccessed" Label="Last Accessed" Format="dddd"/>
			<DNL:FileColumn ColumnType="Thumbnail" Label="Thumb"/>
		</FileColumns>
	</DNL:DbNetFile>

Run Sample

IndexingServiceColumnType

Specifies an Indexing Service property from the list of values defined here

Search

Specifies whether the file property can be searched against in the search dialog

SearchDisplay

Specifies whether the file property is displayed in the search results.

Selectable

Specifies whether the column value is to be converted into a hyperlink that can be clicked to select the file.

WindowsSearchColumnType

Specifies an Indexing Service property from the list of values defined here

	<DNL:DbNetFile 
		runat="server"
		id="DbNetFile1"  
		BrowseMode="WindowsSearch"
		>
		<FileColumns>
			<DNL:FileColumn ColumnType=Icon />
			<DNL:FileColumn ColumnType=Name Label="Name" Selectable="true"/>
			<DNL:FileColumn ColumnType=DateCreated Label="Created"/> 
			<DNL:FileColumn ColumnType=Thumbnail Label="Thumb"/> 
			<DNL:FileColumn ColumnType=WindowsSearch Label="Image Width" WindowsSearchColumnType=Image_HorizontalSize /> 
			<DNL:FileColumn ColumnType=WindowsSearch Label="Image Height" WindowsSearchColumnType=Image_VerticalSize /> 
		</FileColumns>
	</DNL:DbNetFile>