FlexGrid for WinForms
GetData(Int32,Int32) Method



Row index.
Column index.
Gets the value of a grid cell.
Syntax
'Declaration
 
Public Overloads Overridable Function GetData( _
   ByVal row As Integer, _
   ByVal col As Integer _
) As Object
'Usage
 
Dim instance As C1FlexGridBase
Dim row As Integer
Dim col As Integer
Dim value As Object
 
value = instance.GetData(row, col)
public virtual object GetData( 
   int row,
   int col
)
public:
virtual Object^ GetData( 
   int row,
   int col
) 

Parameters

row
Row index.
col
Column index.

Return Value

The value of the cell.
Remarks

The GetData(Int32,Int32) method returns the raw data stored in a specific grid cell. It is equivalent to using the grid's indexer. For example:

object foo = flex.GetData(1, 1); object bar = flex[1, 1]; // same thing

The data displayed on the grid might be different from the raw data, depending on the setting of the RowCol.Format and RowCol.DataMap properties. To obtain the display value (which is always a string), use the GetDataDisplay(Int32,Int32) method instead.

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

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback