BCGControlBar Library for .NET
SetDataFromString Method




String value to convert.
Grid column where the data item is located. For data bound grids the column tells the required type to convert.
Tries to convert the specified string to to a value of DataType type.
Syntax
'Declaration
 
Public Overridable Function SetDataFromString( _
   ByVal value As String, _
   ByVal column As GridColumn _
) As Boolean
'Usage
 
Dim instance As GridDataItem
Dim value As String
Dim column As GridColumn
Dim value As Boolean
 
value = instance.SetDataFromString(value, column)
public virtual bool SetDataFromString( 
   string value,
   GridColumn column
)
public: virtual bool SetDataFromString( 
   string* value,
   GridColumn* column
) 
public:
virtual bool SetDataFromString( 
   String^ value,
   GridColumn^ column
) 

Parameters

value
String value to convert.
column
Grid column where the data item is located. For data bound grids the column tells the required type to convert.

Return Value

True if conversion succeeded. False if DataType is not GridDataType.Standard.
Remarks
Conversion is allowed only for standard data types. This method is called from GridControl when it tries to update a data item with edited value.
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

GridDataItem Class
GridDataItem Members

Send Feedback