SpreadsheetGear 2017
GetDataSet Method (IRange)






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

Parameters

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

Return Value

A data set for the cells referred to by the current IRange.
Remarks
One data table is returned in the data set for each range specified by the current IRange.
Example
See live DataSet 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
GetDataTable Method
CopyFromDataTable Method