Back to Devexpress

VirtualTreeSetCellValueInfo.NewCellData Property

windowsforms-devexpress-dot-xtratreelist-dot-virtualtreesetcellvalueinfo-52b2d701.md

latest5.9 KB
Original Source

VirtualTreeSetCellValueInfo.NewCellData Property

Gets the new cell value (when VirtualTreeSetCellValueInfo.IsCheckState is false ) or the node’s new check state (when VirtualTreeSetCellValueInfo.IsCheckState is true ).

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public object NewCellData { get; }
vb
Public ReadOnly Property NewCellData As Object

Property Value

TypeDescription
Object

An object that represents the new cell value/node’s new check state.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the NewCellData property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

zip-compression-and-archive-api-examples/CS/CompressionLibraryExamples/MyTreeData.cs#L37

csharp
void TreeList.IVirtualTreeListData.VirtualTreeSetCellValue(VirtualTreeSetCellValueInfo info) {
    cellsCore[info.Column.AbsoluteIndex] = info.NewCellData;
}

excel-export-api-examples/CS/XLExportExamples/BusinessObjects.cs#L58

csharp
case "Name":
    obj.Name = (string)info.NewCellData;
    break;

spreadsheet-document-api-apply-conditional-formatting-to-cell-range/CS/ConditionalFormatting_Example/BusinessObjects.cs#L71

csharp
case "Name":
    obj.Name = (string)info.NewCellData;
    break;

winforms-spreadsheet-apply-conditional-formatting-to-a-range-of-cells/CS/SpreadsheetControl/BusinessObjects.cs#L67

csharp
case "Name":
    obj.Name = (string)info.NewCellData;
    break;

winforms-spreadsheetcontrol-api-part1/CS/SpreadsheetControl/BusinessObjects.cs#L67

csharp
case "Name":
    obj.Name = (string)info.NewCellData;
    break;

zip-compression-and-archive-api-examples/VB/CompressionLibraryExamples/MyTreeData.vb#L37

vb
Private Sub VirtualTreeSetCellValue(ByVal info As VirtualTreeSetCellValueInfo) Implements TreeList.IVirtualTreeListData.VirtualTreeSetCellValue
    cellsCore(info.Column.AbsoluteIndex) = info.NewCellData
End Sub

excel-export-api-examples/VB/XLExportExamples/BusinessObjects.vb#L79

vb
Case "Name"
        obj.Name = CStr(info.NewCellData)
End Select

spreadsheet-document-api-apply-conditional-formatting-to-cell-range/VB/ConditionalFormatting_Example/BusinessObjects.vb#L86

vb
Case "Name"
        obj.Name = CStr(info.NewCellData)
End Select

winforms-spreadsheet-apply-conditional-formatting-to-a-range-of-cells/VB/SpreadsheetControl/BusinessObjects.vb#L88

vb
Case "Name"
        obj.Name = CStr(info.NewCellData)
End Select

winforms-spreadsheetcontrol-api-part1/VB/SpreadsheetControl/BusinessObjects.vb#L76

vb
Case "Name"
        obj.Name = DirectCast(info.NewCellData, String)
End Select

See Also

IsCheckState

VirtualTreeSetCellValueInfo Class

VirtualTreeSetCellValueInfo Members

DevExpress.XtraTreeList Namespace