SpreadsheetGear 2017
GetDataTable Method (IRange)






SpreadsheetGear Namespace > IRange Interface : GetDataTable Method
Specifies optional features such as column headers and formatted text values.
Returns a newly created data table from the cells referred to by this IRange.
Syntax
'Declaration
 
Function GetDataTable( _
   ByVal flags As GetDataFlags _
) As System.Data.DataTable
'Usage
 
Dim instance As IRange
Dim flags As GetDataFlags
Dim value As System.Data.DataTable
 
value = instance.GetDataTable(flags)
System.Data.DataTable GetDataTable( 
   GetDataFlags flags
)
function GetDataTable( 
    flags: GetDataFlags
): System.Data.DataTable; 
function GetDataTable( 
   flags : GetDataFlags
) : System.Data.DataTable;
System.Data.DataTable* GetDataTable( 
   GetDataFlags flags
) 
System.Data.DataTable^ GetDataTable( 
   GetDataFlags flags
) 

Parameters

flags
Specifies optional features such as column headers and formatted text values.

Return Value

A data table for the cells referred to by the current IRange.
Example
See live DataTable examples on the live .NET DataGrid` Samples page.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IRange Interface
IRange Members
GetDataFlags Enumeration
GetDataSet Method
CopyFromDataTable Method