Intersoft ClientUI Documentation
CanUserExport Property
See Also  Send Feedback
Intersoft.Client.UI.Data Namespace > UXGridView Class : CanUserExport Property






Gets or sets a value that indicates whether the user can export data.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Data Exporting")>
Public Property CanUserExport As Boolean
Visual Basic (Usage)Copy Code
Dim instance As UXGridView
Dim value As Boolean
 
instance.CanUserExport = value
 
value = instance.CanUserExport
C# 
[CategoryAttribute("Data Exporting")]
public bool CanUserExport {get; set;}
Delphi 
public read-write property CanUserExport: Boolean; 
JScript 
CategoryAttribute("Data Exporting")
public function get,set CanUserExport : boolean
Managed Extensions for C++ 
[CategoryAttribute("Data Exporting")]
public: __property bool get_CanUserExport();
public: __property void set_CanUserExport( 
   bool value
);
C++/CLI 
[CategoryAttribute("Data Exporting")]
public:
property bool CanUserExport {
   bool get();
   void set (    bool value);
}

Example

XAML Copy Code
<Intersoft:UXGridView CanUserExport="{Binding CanUserExport}">
    <Intersoft:UXGridView.ExportOptions>
        <Intersoft:UXGridViewExportOptions IncludeColumnFooters="True" IncludeColumnHeaders="True" IncludeGroupFooters="True" />                       
    </Intersoft:UXGridView.ExportOptions>                
</Intersoft:UXGridView>

Remarks

To enable data exporting in UXGridView, you simply set the CanUserExport property of UXGridView to true.

When enabled, an Export dropdown button will appear in the status bar element of UXGridView.

You can also select the format of the exported results from the context menu as shown in the figure above. The supported export format are:

  • HTML
  • Excel
  • CSV
  • Text

Furthermore, you can also customize which element to export through the provided ExportOptions property. The following code shows how to include column footers and group footers in the data export results.

IncludeColumnFooters and IncludeGroupFooters are only applicable for HTML format.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.