# Changing Data Values

## Content



To change a data value displayed in the chart, set its Item property. For example, the following statement changes the value of the point in the third row and second column to 3.14159:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
C1Chart3D1.ChartGroups(0).ChartData.SetGrid(1, 2) = 3.14159
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
C1Chart3D1.ChartGroups[0].ChartData.SetGrid[1, 2] = 3.14159;
```

DOC-DETAILS-TAG-CLOSE

## See Also

[Adding Rows and Columns](/componentone/docs/win/online-chart3d/3ddata/addingrowsandcolumns)