Xceed Grid for WinForms v4.3 Documentation
NewValue Property (LeavingEditEventArgs)


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > LeavingEditEventArgs Class : NewValue Property
Gets or sets the new value assigned to the Cell.Value property of the cell.
Syntax
'Declaration
 
Public Property NewValue As Object
'Usage
 
Dim instance As LeavingEditEventArgs

Dim value As Object

 

instance.NewValue = value

 

value = instance.NewValue
public object NewValue {get; set;}

Property Value

An object representing the new value of the cell.
Remarks

NewValue is the "raw" result of the editor being used and must be converted or parsed in order to retrieve the actual value and data type. For example, if a column has an int data type, NewValue will be the string representation of that type since, by default, the Xceed.Grid.Editors.GridTextBox editor is being used. To retrieve the actual value (as an int), you cannot simply cast NewValue as an int! You would need to use the int.Parse method to retrieve the value as an int. For example: int.Parse( ( string )e.NewValue )

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

LeavingEditEventArgs Class
LeavingEditEventArgs Members