User (Legacy) Posted July 22, 2003 Report Share Posted July 22, 2003 Hello, i have a Problem. How can i delete/remove one Point in the DataEditor? I added the Points with the Event "oDataTable_RowChanged" > Private Sub oDataTable_RowChanged(ByVal sender As Object, ByVal e As DataRowChangeEventArgs) > With ChartWerte > .OpenData(COD.Values, COD.Unchange, COD.Unchange) > .OpenData(COD.XValues, COD.Unchange, COD.Unchange) > .Value(0, oDataGrid.CurrentRowIndex) = Convert.ToDouble(e.Row.Item(2)) > .XValue(0, oDataGrid.CurrentRowIndex) = Convert.ToDouble(e.Row.Item(0)) / Convert.ToDouble(txtBoxSteps.Text.Trim) > .CloseData(COD.XValues) > .CloseData(COD.Values) > .RecalcScale() > End With > End Sub When i delete a row from the DataTable, then i will delete the point from the Chart (DataEditor), too. How can I do this? > Private Sub btnDeleteRow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDeleteRow.Click > If oDataGrid.CurrentRowIndex() >= 0 Then oDataTable.Rows.RemoveAt(oDataGrid.CurrentRowIndex()) > End If > End Sub Thanks for the help, Markus Kircher Link to comment Share on other sites More sharing options...
Software FX Posted July 22, 2003 Report Share Posted July 22, 2003 The data editor shows the SAME data as the chart. You can not remove a point from only one of them. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.